summary refs log tree commit diff
path: root/pkgs/tools/security/bpb/default.nix
diff options
context:
space:
mode:
authorflurie <flurie@gmail.com>2021-11-15 23:42:10 -0500
committerflurie <flurie@gmail.com>2021-11-15 23:42:10 -0500
commite0c6f91e6d855b49df94892ff4c831ea9bd67884 (patch)
tree3b3e1e5d504732338100cb8832d51f4db0a3a540 /pkgs/tools/security/bpb/default.nix
parentc8920ed7ceda97a7613f020af10ed5477bf5b942 (diff)
downloadnixpkgs-e0c6f91e6d855b49df94892ff4c831ea9bd67884.tar
nixpkgs-e0c6f91e6d855b49df94892ff4c831ea9bd67884.tar.gz
nixpkgs-e0c6f91e6d855b49df94892ff4c831ea9bd67884.tar.bz2
nixpkgs-e0c6f91e6d855b49df94892ff4c831ea9bd67884.tar.lz
nixpkgs-e0c6f91e6d855b49df94892ff4c831ea9bd67884.tar.xz
nixpkgs-e0c6f91e6d855b49df94892ff4c831ea9bd67884.tar.zst
nixpkgs-e0c6f91e6d855b49df94892ff4c831ea9bd67884.zip
bpb: fix build on darwin
Diffstat (limited to 'pkgs/tools/security/bpb/default.nix')
-rw-r--r--pkgs/tools/security/bpb/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/tools/security/bpb/default.nix b/pkgs/tools/security/bpb/default.nix
index 121c5674c08..4d601aac155 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";