diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 35a11a3ed120..738efef59385 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1453,17 +1453,6 @@ with haskellLib; # 2025-02-10: Too strict bounds on text < 2.1 digestive-functors-blaze = doJailbreak super.digestive-functors-blaze; - # Wrap the generated binaries to include their run-time dependencies in - # $PATH. Also, cryptol needs a version of sbl that's newer than what we have - # in LTS-13.x. - cryptol = overrideCabal (drv: { - buildTools = drv.buildTools or [ ] ++ [ pkgs.buildPackages.makeWrapper ]; - postInstall = drv.postInstall or "" + '' - for b in $out/bin/cryptol $out/bin/cryptol-html; do - wrapProgram $b --prefix 'PATH' ':' "${lib.getBin pkgs.z3}/bin" - done - ''; - }) super.cryptol; # Z3 removed aliases for boolean types in 4.12 inherit diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index 64d1b8829279..5513a3ff564e 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -584,6 +584,16 @@ builtins.intersectAttrs super { mustache = dontCheck super.mustache; arch-web = dontCheck super.arch-web; + # Wrap the generated binaries to include their run-time dependencies in $PATH. + cryptol = overrideCabal (drv: { + buildTools = drv.buildTools or [ ] ++ [ pkgs.buildPackages.makeWrapper ]; + postInstall = drv.postInstall or "" + '' + for b in $out/bin/cryptol $out/bin/cryptol-html; do + wrapProgram $b --prefix 'PATH' ':' "${lib.getBin pkgs.z3}/bin" + done + ''; + }) super.cryptol; + # Some test cases require network access hpack_0_39_1 = doDistribute ( overrideCabal (drv: {