Skip to content

Commit

Permalink
chore: enable to build in aarch64-darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
nokazn committed Jan 28, 2024
1 parent 56d54b1 commit 425ce01
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
{
defaultPackage = naersk-lib.buildPackage ./.;
devShell = with pkgs; mkShell {
nativeBuildInputs = [
pkg-config
];
buildInputs = [
cargo
rustc
Expand All @@ -22,8 +25,16 @@
pre-commit
nixpkgs-fmt
just
openssl.dev
libiconv
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
RUST_SRC_PATH = rustPlatform.rustLibSrc;
OPENSSL_INCLUDE_DIR = (
lib.makeSearchPathOutput "dev" "include" [ pkgs.openssl.dev ]
) + "/openssl";
OPENSSL_STATIC = "0";
};
});
}

0 comments on commit 425ce01

Please sign in to comment.