git-absorb: un-vendor libgit2 and libz, enable __structuredAttrs (#571537)

This commit is contained in:
nixpkgs-ci[bot]
2026-10-08 10:26:57 +00:00
committed by GitHub

View File

@@ -7,12 +7,17 @@
rustPlatform,
installShellFiles,
which,
pkg-config,
libgit2,
libz,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "git-absorb";
version = "0.9.0";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "tummychow";
repo = "git-absorb";
@@ -28,8 +33,19 @@ rustPlatform.buildRustPackage (finalAttrs: {
cargoHash = "sha256-8uCXk5bXn/x4QXbGOROGlWYMSqIv+/7dBGZKbYkLfF4=";
env = {
LIBGIT2_NO_VENDOR = 1;
LIBZ_SYS_STATIC = 0;
};
nativeCheckInputs = [
gitMinimal
pkg-config
];
buildInputs = [
libgit2
libz
];
postInstall = ''