From 47f2630702767c2166b449fcd8afc5a99b4793ba Mon Sep 17 00:00:00 2001 From: Matthew Kenigsberg Date: Wed, 14 Jun 2023 14:41:10 -0600 Subject: [PATCH] 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 --- flake.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 9f55e68..430f797 100644 --- a/flake.nix +++ b/flake.nix @@ -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 */ ]); };