Skip to content

Commit

Permalink
haskellPackages.Spock-core: build with correct reroute version
Browse files Browse the repository at this point in the history
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]: agrafix/Spock#180 (comment)
[reverse deps]: https://packdeps.haskellers.com/reverse/reroute
  • Loading branch information
sternenseemann committed Jul 26, 2022
1 parent dd6432a commit 57055b6
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions pkgs/development/haskell-modules/configuration-common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 57055b6

Please sign in to comment.