From 80f971dffd715fd307185673878ca3fd3ca735ed Mon Sep 17 00:00:00 2001 From: figsoda Date: Sat, 30 Oct 2021 12:57:45 -0400 Subject: [PATCH] keyscope: fix darwin build --- pkgs/tools/security/keyscope/default.nix | 10 +++++++++- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/keyscope/default.nix b/pkgs/tools/security/keyscope/default.nix index 12c692a1d58c..dad09970b911 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 fe53386974cb..3e679252fb06 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 {