cabal2nix: fix build by overriding hpack to 0.29.6

Fixes: https://github.com/NixOS/cabal2nix/issues/369
This commit is contained in:
Bas van Dijk 2018-08-11 10:44:27 +02:00
parent e9b7e73120
commit 9481513360
1 changed files with 13 additions and 7 deletions

View File

@ -1080,13 +1080,19 @@ self: super: {
haddock-library = doJailbreak (dontCheck super.haddock-library); haddock-library = doJailbreak (dontCheck super.haddock-library);
haddock-library_1_6_0 = doJailbreak (dontCheck super.haddock-library_1_6_0); haddock-library_1_6_0 = doJailbreak (dontCheck super.haddock-library_1_6_0);
# The test suite does not know how to find the 'cabal2nix' binary. cabal2nix =
cabal2nix = overrideCabal super.cabal2nix (drv: { let
preCheck = '' # The test suite does not know how to find the 'cabal2nix' binary.
export PATH="$PWD/dist/build/cabal2nix:$PATH" drv1 = overrideCabal super.cabal2nix (drv: {
export HOME="$TMPDIR/home" preCheck = ''
''; export PATH="$PWD/dist/build/cabal2nix:$PATH"
}); export HOME="$TMPDIR/home"
'';
});
# cabal2nix requires hpack >= 0.29.6 but the LTS has hpack-0.28.2.
# Lets remove this once the LTS has upraded to 0.29.6.
drv2 = drv1.override { hpack = self.hpack_0_29_6; };
in drv2;
# Break out of "aeson <1.3, temporary <1.3". # Break out of "aeson <1.3, temporary <1.3".
stack = doJailbreak super.stack; stack = doJailbreak super.stack;