diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index ea44ef75595f..aed21d24398a 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1854,7 +1854,6 @@ with haskellLib; # PATH. deps = [ pkgs.git - pkgs.nix pkgs.nix-prefetch-git ]; in @@ -1868,7 +1867,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 { @@ -2038,6 +2039,7 @@ with haskellLib; cli-git = addBuildTool pkgs.git super.cli-git; cli-nix = addBuildTools [ + # Required due to https://github.com/obsidiansystems/cli-nix/issues/11 pkgs.nix pkgs.nix-prefetch-git ] super.cli-nix; diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index bc19c93d21ef..b4f120e45dcb 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -262,12 +262,7 @@ builtins.intersectAttrs super { ghc-debug-brick = enableSeparateBinOutput super.ghc-debug-brick; nixfmt = enableSeparateBinOutput super.nixfmt; calligraphy = enableSeparateBinOutput super.calligraphy; - niv = overrideCabal (drv: { - buildTools = (drv.buildTools or [ ]) ++ [ pkgs.buildPackages.makeWrapper ]; - postInstall = '' - wrapProgram ''${!outputBin}/bin/niv --prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.nix ]} - ''; - }) (enableSeparateBinOutput (self.generateOptparseApplicativeCompletions [ "niv" ] super.niv)); + niv = enableSeparateBinOutput (self.generateOptparseApplicativeCompletions [ "niv" ] super.niv); ghcid = enableSeparateBinOutput super.ghcid; ormolu = self.generateOptparseApplicativeCompletions [ "ormolu" ] ( enableSeparateBinOutput super.ormolu @@ -1596,7 +1591,6 @@ builtins.intersectAttrs super { wrapProgram "$out/bin/nvfetcher" --prefix 'PATH' ':' "${ pkgs.lib.makeBinPath [ pkgs.nvchecker - pkgs.nix # nix-prefetch-url pkgs.nix-prefetch-git pkgs.nix-prefetch-docker ] diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a33d745bd105..6e6dd6fff9b5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1687,7 +1687,6 @@ with pkgs; wrapProgram $out/bin/cabal2nix \ --prefix PATH ":" "${ lib.makeBinPath [ - nix nix-prefetch-scripts ] }"