Skip to content

Commit

Permalink
genpass: fix darwin build
Browse files Browse the repository at this point in the history
  • Loading branch information
zowoq committed Aug 19, 2020
1 parent 4cb5383 commit 7c93f85
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pkgs/tools/security/genpass/default.nix
@@ -1,6 +1,9 @@
{ stdenv
, fetchFromGitHub
, rustPlatform
, CoreFoundation
, libiconv
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "genpass";
Expand All @@ -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";
Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -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 { };

Expand Down

0 comments on commit 7c93f85

Please sign in to comment.