From 1b97951cb72eab06665cf8738f79faeecc37b87a Mon Sep 17 00:00:00 2001 From: Johan Herland Date: Mon, 14 Jul 2025 14:33:40 +0000 Subject: [PATCH] nix-prefetch-git: Depend on gitMinimal instead of git This reduces the transitive closure size of nix-prefetch-git from ~355MB to ~163MB. --- .../tools/package-management/nix-prefetch-scripts/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/package-management/nix-prefetch-scripts/default.nix b/pkgs/tools/package-management/nix-prefetch-scripts/default.nix index 8c88fcb6bb30..5f57c58a5885 100644 --- a/pkgs/tools/package-management/nix-prefetch-scripts/default.nix +++ b/pkgs/tools/package-management/nix-prefetch-scripts/default.nix @@ -9,7 +9,7 @@ cvs, findutils, gawk, - git, + gitMinimal, git-lfs, gnused, mercurial, @@ -64,7 +64,7 @@ rec { nix-prefetch-git = mkPrefetchScript "git" ../../../build-support/fetchgit/nix-prefetch-git [ findutils gawk - git + gitMinimal git-lfs ]; nix-prefetch-hg = mkPrefetchScript "hg" ../../../build-support/fetchhg/nix-prefetch-hg [