Skip to content

Commit

Permalink
Fix darwin devShell (#514)
Browse files Browse the repository at this point in the history
* Move Linux only dependencies to isLinux block

SELinux tools are Linux specific

* Add apple_sdk Security framework to devShell

Otherwise cargo build fails with:
ld: framework not found Security
  • Loading branch information
mkenigs authored Jun 14, 2023
1 parent b29a758 commit 47f2630
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -140,17 +140,20 @@
cacert
cargo-audit
nixpkgs-fmt
semodule-utils
checkpolicy
check.check-rustfmt
check.check-spelling
check.check-nixpkgs-fmt
check.check-editorconfig
check.check-semver
]
++ lib.optionals (pkgs.stdenv.isDarwin) (with pkgs; [ libiconv ])
++ lib.optionals (pkgs.stdenv.isDarwin) (with pkgs; [
libiconv
darwin.apple_sdk.frameworks.Security
])
++ lib.optionals (pkgs.stdenv.isLinux) (with pkgs; [
checkpolicy
podman
semodule-utils
/* users are expected to have a system docker, too */
]);
};
Expand Down

0 comments on commit 47f2630

Please sign in to comment.