Skip to content

Commit

Permalink
chore: add OS X dependencies to nix build
Browse files Browse the repository at this point in the history
  • Loading branch information
cfcosta authored and rvcas committed Jul 10, 2023
1 parent 4a435a6 commit 887f214
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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; };
Expand Down Expand Up @@ -63,7 +67,7 @@
(pkgs.rust-bin.stable.latest.default.override {
extensions = [ "rust-src" "clippy" "rustfmt" ];
})
];
] ++ osxDependencies;

shellHook = ''
export GIT_REVISION=${gitRev}
Expand Down

0 comments on commit 887f214

Please sign in to comment.