Skip to content

Commit

Permalink
Add required OSX library to nix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian May committed Jul 31, 2023
1 parent 81a9eba commit 99640c8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
overlays = [ (import rust-overlay) ];
};

osxlibs = pkgs.lib.lists.optional pkgs.stdenv.isDarwin
pkgs.darwin.apple_sdk.frameworks.Security;

src = ./.;

rustPlatform = pkgs.rust-bin.stable.latest.default;
Expand Down Expand Up @@ -47,6 +50,7 @@
pkg = craneLib.buildPackage {
inherit src;
cargoArtifacts = clippy;
buildInputs = osxlibs;

# Add extra inputs here or any other derivation settings
doCheck = true;
Expand Down Expand Up @@ -82,7 +86,8 @@
rustPlatform.override { extensions = [ "rust-src" ]; };
workspaceShell = pkgs.mkShell {
buildInputs =
[ pkgs.rust-analyzer rustSrcPlatform helm awscli sops vals gnupg ];
[ pkgs.rust-analyzer rustSrcPlatform helm awscli sops vals gnupg ]
++ osxlibs;
};

in rec {
Expand Down

0 comments on commit 99640c8

Please sign in to comment.