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 , pkg-config
, openssl , openssl
, stdenv , stdenv
, DiskArbitration
, Foundation
, IOKit
, Security , Security
}: }:
@ -22,7 +25,12 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkg-config ]; 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 # build script tries to get information from git
postPatch = '' postPatch = ''

View File

@ -6670,7 +6670,7 @@ with pkgs;
keyfuzz = callPackage ../tools/inputmethods/keyfuzz { }; keyfuzz = callPackage ../tools/inputmethods/keyfuzz { };
keyscope = callPackage ../tools/security/keyscope { 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 { keystore-explorer = callPackage ../applications/misc/keystore-explorer {