about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2021-11-16 10:21:59 +0000
committerGitHub <noreply@github.com>2021-11-16 10:21:59 +0000
commitcd65cb38bc9a8dc72e13ec52222c2410798e58ba (patch)
tree3c20bb390a46341e3e9e70db59bd486adfe3de59
parenta40917f3c0cc56d46ad12ab16fbeb00489a2bcef (diff)
parente0c6f91e6d855b49df94892ff4c831ea9bd67884 (diff)
Merge pull request #146212 from flurie/fix-bpb-darwin
bpb: fix build on darwin
-rw-r--r--pkgs/tools/security/bpb/default.nix3
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/tools/security/bpb/default.nix b/pkgs/tools/security/bpb/default.nix
index 121c5674c08c5..4d601aac15530 100644
--- a/pkgs/tools/security/bpb/default.nix
+++ b/pkgs/tools/security/bpb/default.nix
@@ -2,6 +2,7 @@
 , lib
 , rustPlatform
 , fetchFromGitHub
+, Security
 }:
 
 rustPlatform.buildRustPackage rec {
@@ -20,6 +21,8 @@ rustPlatform.buildRustPackage rec {
   # a nightly compiler is required unless we use this cheat code.
   RUSTC_BOOTSTRAP = 1;
 
+  buildInputs = lib.optional stdenv.isDarwin Security;
+
   meta = with lib; {
     description = "Tool to automatically sign git commits, replacing gpg for that purpose";
     homepage = "https://github.com/withoutboats/bpb";
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 6b19e97f089b0..1775134c2bdef 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -2228,7 +2228,7 @@ with pkgs;
   bozohttpd = callPackage ../servers/http/bozohttpd { };
   bozohttpd-minimal = callPackage ../servers/http/bozohttpd { minimal = true; };
 
-  bpb = callPackage ../tools/security/bpb { };
+  bpb = callPackage ../tools/security/bpb { inherit (darwin.apple_sdk.frameworks) Security; };
 
   bpytop = callPackage ../tools/system/bpytop { };