From c61c7155a1d35fc3c14446fe8e5bdb74cda61fcc Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Wed, 19 Jan 2022 17:08:21 -0500 Subject: [PATCH] Special build inputs for darwin --- flake.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 48b7e3e..2558b4b 100644 --- a/flake.nix +++ b/flake.nix @@ -34,7 +34,11 @@ # `nix develop` devShell = pkgs.mkShell { - nativeBuildInputs = with pkgs; [ rustc cargo ]; + nativeBuildInputs = (with pkgs; [ rustc cargo ]) ++ + nixpkgs.lib.optionals (nixpkgs.lib.strings.hasSuffix "darwin" system) (with pkgs; [ + libiconv + darwin.apple_sdk.frameworks.Security + ]); }; # module