git-trim: add missing zlib dependency (#369536)

This commit is contained in:
Emily
2024-12-31 15:19:57 +00:00
committed by GitHub
2 changed files with 7 additions and 17 deletions
@@ -1,14 +1,11 @@
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
libgit2,
IOKit,
CoreFoundation,
Security,
zlib,
fetchpatch,
}:
@@ -37,16 +34,11 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkg-config ];
buildInputs =
[
openssl
libgit2
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
IOKit
CoreFoundation
Security
];
buildInputs = [
openssl
libgit2
zlib
];
postInstall = ''
install -Dm644 -t $out/share/man/man1/ docs/git-trim.1
+1 -3
View File
@@ -1261,9 +1261,7 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security;
};
git-trim = darwin.apple_sdk_11_0.callPackage ../applications/version-management/git-trim {
inherit (darwin.apple_sdk_11_0.frameworks) IOKit CoreFoundation Security;
};
git-trim = callPackage ../applications/version-management/git-trim { };
git-up = callPackage ../applications/version-management/git-up {
pythonPackages = python3Packages;