From 5b94303f1a37f2c46aeee142e7b34d6880bd64a5 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sat, 17 Jan 2026 12:50:33 +0100 Subject: [PATCH] update-nix-fetchgit: remove pkgs.nix from the wrapper We can assume that the user has Nix installed. Not having it in the wrapper prevents pulling in a specific version of C++ Nix when the user may prefer another version or Lix etc. --- pkgs/development/haskell-modules/configuration-common.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 1332333c02c5..0a8b59088f37 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1840,7 +1840,6 @@ with haskellLib; # PATH. deps = [ pkgs.git - pkgs.nix pkgs.nix-prefetch-git ]; in @@ -1854,7 +1853,9 @@ with haskellLib; wrapProgram "$out/bin/update-nix-fetchgit" --prefix 'PATH' ':' "${lib.makeBinPath deps}" ''; })) - (addTestToolDepends deps) + # pkgs.nix is not added to the wrapper since we can resonably expect it to be installed + # and we don't know which implementation the eventual user prefers + (addTestToolDepends (deps ++ [ pkgs.nix ])) # Patch for hnix compat. (appendPatches [ (fetchpatch {