Fix darwin devShell (#514)

* 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
This commit is contained in:
Matthew Kenigsberg 2023-06-14 14:41:10 -06:00 committed by GitHub
parent b29a7585bd
commit 47f2630702
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 */
]);
};