git-trim: fix darwin build

Add the required framework to dependencies.
This commit is contained in:
Stanisław Pitucha 2023-03-21 12:23:56 +11:00
parent 3b8e15b8d3
commit 45710e1d7d
2 changed files with 4 additions and 3 deletions

View File

@ -7,6 +7,7 @@
, libgit2
, IOKit
, CoreFoundation
, Security
, fetchpatch
}:
@ -36,7 +37,7 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl libgit2 ]
++ lib.optionals stdenv.isDarwin [ IOKit CoreFoundation ];
++ lib.optionals stdenv.isDarwin [ IOKit CoreFoundation Security ];
postInstall = ''
install -Dm644 -t $out/share/man/man1/ docs/git-trim.1

View File

@ -1957,8 +1957,8 @@ with pkgs;
git-town = callPackage ../applications/version-management/git-town { };
git-trim = callPackage ../applications/version-management/git-trim {
inherit (darwin.apple_sdk_11_0.frameworks) IOKit CoreFoundation;
git-trim = darwin.apple_sdk_11_0.callPackage ../applications/version-management/git-trim {
inherit (darwin.apple_sdk_11_0.frameworks) IOKit CoreFoundation Security;
};
git-up = callPackage ../applications/version-management/git-up {