gex: add Security framework dependency on darwin

This commit is contained in:
Theodore Ni 2023-08-05 12:53:46 -07:00
parent 04f88809c1
commit 76aa255c3a
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474
2 changed files with 10 additions and 2 deletions

View File

@ -4,6 +4,7 @@
, fetchFromGitHub
, pkg-config
, libgit2
, Security
}:
rustPlatform.buildRustPackage rec {
@ -18,7 +19,12 @@ rustPlatform.buildRustPackage rec {
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libgit2 ];
buildInputs = [
libgit2
] ++ lib.optionals stdenv.isDarwin [
Security
];
cargoHash = "sha256-28sMY47LAdaGmPNmxeu/w1Pn6AV3JlWbxFcit5pLkI0";

View File

@ -2085,7 +2085,9 @@ with pkgs;
diff-so-fancy = callPackage ../applications/version-management/diff-so-fancy { };
gex = callPackage ../applications/version-management/gex { };
gex = callPackage ../applications/version-management/gex {
inherit (darwin.apple_sdk.frameworks) Security;
};
gfold = callPackage ../applications/version-management/gfold {
inherit (darwin.apple_sdk.frameworks) Security;