about summary refs log tree commit diff
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2021-10-30 12:57:45 -0400
committerfigsoda <figsoda@pm.me>2021-10-30 13:01:12 -0400
commit80f971dffd715fd307185673878ca3fd3ca735ed (patch)
tree52420b5cd0d47ca2262b3e0f4a71b8d2d5c2ac09
parent90bd1ade2093697acae6ac07b329bf338f0d158e (diff)
keyscope: fix darwin build
-rw-r--r--pkgs/tools/security/keyscope/default.nix10
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/tools/security/keyscope/default.nix b/pkgs/tools/security/keyscope/default.nix
index 12c692a1d58c5..dad09970b911f 100644
--- a/pkgs/tools/security/keyscope/default.nix
+++ b/pkgs/tools/security/keyscope/default.nix
@@ -4,6 +4,9 @@
 , pkg-config
 , openssl
 , stdenv
+, DiskArbitration
+, Foundation
+, IOKit
 , Security
 }:
 
@@ -22,7 +25,12 @@ rustPlatform.buildRustPackage rec {
 
   nativeBuildInputs = [ pkg-config ];
 
-  buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
+  buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
+    DiskArbitration
+    Foundation
+    IOKit
+    Security
+  ];
 
   # build script tries to get information from git
   postPatch = ''
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index fe53386974cbd..3e679252fb064 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -6670,7 +6670,7 @@ with pkgs;
   keyfuzz = callPackage ../tools/inputmethods/keyfuzz { };
 
   keyscope = callPackage ../tools/security/keyscope {
-    inherit (darwin.apple_sdk.frameworks) Security;
+    inherit (darwin.apple_sdk.frameworks) DiskArbitration Foundation IOKit Security;
   };
 
   keystore-explorer = callPackage ../applications/misc/keystore-explorer {