chore: add OS X dependencies to nix build

This commit is contained in:
Cainã Costa 2023-07-06 15:54:56 -03:00 committed by Lucas
parent 4a435a69f0
commit 887f214514
1 changed files with 6 additions and 2 deletions

View File

@ -19,13 +19,17 @@
overlays = [ rust-overlay.overlays.default ];
};
osxDependencies = with pkgs;
lib.optionals stdenv.isDarwin
[ darwin.apple_sdk.frameworks.Security ];
deno = nixpkgs.legacyPackages.${system}.deno;
aiken = pkgs.rustPlatform.buildRustPackage {
name = "aiken";
version = "1.0.11-alpha";
buildInputs = with pkgs; [ openssl ];
buildInputs = with pkgs; [ openssl ] ++ osxDependencies;
nativeBuildInputs = with pkgs; [ pkg-config openssl ];
src = pkgs.lib.cleanSourceWith { src = self; };
@ -63,7 +67,7 @@
(pkgs.rust-bin.stable.latest.default.override {
extensions = [ "rust-src" "clippy" "rustfmt" ];
})
];
] ++ osxDependencies;
shellHook = ''
export GIT_REVISION=${gitRev}