summary refs log tree commit diff
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2020-08-16 23:22:56 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2020-08-19 11:17:49 +1000
commit7c93f85b7abe3f99b83c23b44d5664ac55ea5362 (patch)
tree7b8a930fd6d1abcf0eec843f2cb98b1abe3a37f2
parent4cb53831410ab0212b99e4324488df67615b20dc (diff)
downloadnixpkgs-7c93f85b7abe3f99b83c23b44d5664ac55ea5362.tar
nixpkgs-7c93f85b7abe3f99b83c23b44d5664ac55ea5362.tar.gz
nixpkgs-7c93f85b7abe3f99b83c23b44d5664ac55ea5362.tar.bz2
nixpkgs-7c93f85b7abe3f99b83c23b44d5664ac55ea5362.tar.lz
nixpkgs-7c93f85b7abe3f99b83c23b44d5664ac55ea5362.tar.xz
nixpkgs-7c93f85b7abe3f99b83c23b44d5664ac55ea5362.tar.zst
nixpkgs-7c93f85b7abe3f99b83c23b44d5664ac55ea5362.zip
genpass: fix darwin build
-rw-r--r--pkgs/tools/security/genpass/default.nix5
-rw-r--r--pkgs/top-level/all-packages.nix4
2 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/tools/security/genpass/default.nix b/pkgs/tools/security/genpass/default.nix
index 54a084ff596..39a84112d63 100644
--- a/pkgs/tools/security/genpass/default.nix
+++ b/pkgs/tools/security/genpass/default.nix
@@ -1,6 +1,9 @@
 { stdenv
 , fetchFromGitHub
 , rustPlatform
+, CoreFoundation
+, libiconv
+, Security
 }:
 rustPlatform.buildRustPackage rec {
   pname = "genpass";
@@ -15,6 +18,8 @@ rustPlatform.buildRustPackage rec {
 
   cargoSha256 = "1p6l64s9smhwka8bh3pamqimamxziad859i62nrmxzqc49nq5s7m";
 
+  buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreFoundation libiconv Security ];
+
   meta = with stdenv.lib; {
     description = "A simple yet robust commandline random password generator.";
     homepage = "https://github.com/cyplo/genpass";
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 3acb51a625f..52af1b91e4e 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -997,7 +997,9 @@ in
 
   fxlinuxprintutil = callPackage ../tools/misc/fxlinuxprintutil { };
 
-  genpass = callPackage ../tools/security/genpass { };
+  genpass = callPackage ../tools/security/genpass {
+    inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
+  };
 
   genymotion = callPackage ../development/mobile/genymotion { };