Merge pull request #222272 from viraptor/git-trim-darwin

git-trim: fix darwin build
This commit is contained in:
Stanisław Pitucha 2023-03-22 23:01:45 +11:00 committed by GitHub
commit 43facdc480
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

@ -1963,8 +1963,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 {