haskellPackages.Spock-core: build with correct reroute version

Spock-core 0.14.0.1 now only supports reroute >= 0.7 because it exports
the new AltVar type (in an [PVP violation]).

We can luckily accomodate Spock-core, since all other [reverse deps] of
reroute are marked broken in nixpkgs at the moment.

[PVP violation]: https://github.com/agrafix/Spock/issues/180#issuecomment-1195328647
[reverse deps]: https://packdeps.haskellers.com/reverse/reroute
This commit is contained in:
sternenseemann 2022-07-26 12:51:15 +02:00
parent dd6432a863
commit 57055b681f

View file

@ -1406,16 +1406,11 @@ self: super: {
superbuffer = dontCheck super.superbuffer;
stm-containers = dontCheck super.stm-containers;
# Fails with "supports custom headers"
# Patch for GHC 9.0 support
Spock-core = dontCheck (appendPatches [
(fetchpatch {
name = "Spock-core-GHC-9.0.patch";
url = "https://github.com/agrafix/Spock/commit/25c75961c4aaaa2e81c9e2afd3d758f2b643f9df.patch";
sha256 = "sha256-JlliIpVYh2CYjJF2I119ab4/1oh6uvxMbRoxlUkKiGw=";
relative = "Spock-core";
})
] super.Spock-core);
# https://github.com/agrafix/Spock/issues/180
# Ignore Stackage LTS bound so we can compile Spock-core again. All other
# reverse dependencies of reroute are marked as broken in nixpkgs, so
# upgrading reroute is probably unproblematic.
reroute = doDistribute self.reroute_0_7_0_0;
# Test suite fails to compile https://github.com/agrafix/Spock/issues/177
Spock = dontCheck super.Spock;