haskellPackages.cryptol: move override to configuration-nix

This commit is contained in:
sternenseemann
2026-04-19 22:12:51 +02:00
parent f9e7c251b9
commit 0acbc12ee9
2 changed files with 10 additions and 11 deletions

View File

@@ -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

View File

@@ -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: {