keyscope: fix darwin build

This commit is contained in:
figsoda 2021-10-30 12:57:45 -04:00
parent 90bd1ade20
commit 80f971dffd
2 changed files with 10 additions and 2 deletions

View file

@ -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 = ''

View file

@ -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 {