haskellPackages.hnix: Fix build (#43824)

This commit is contained in:
Silvan Mosberger 2018-07-19 20:18:44 +02:00 committed by Domen Kožar
parent ecd9be1b62
commit 59159f9d8e

View File

@ -244,8 +244,11 @@ self: super: {
# base bound # base bound
digit = doJailbreak super.digit; digit = doJailbreak super.digit;
# https://github.com/jwiegley/hnix/issues/98 - tied to an older deriving-compat # dontCheck: Can be removed once https://github.com/haskell-nix/hnix/commit/471712f is in (5.2 probably)
hnix = (overrideCabal super.hnix (old: { # This is due to GenList having been removed from generic-random in 1.2.0.0
# doJailbreak: Can be removed once https://github.com/haskell-nix/hnix/pull/329 is in (5.2 probably)
# This is due to hnix currently having an upper bound of <0.5 on deriving-compat, works just fine with our current version 0.5.1 though
hnix = dontCheck (doJailbreak (overrideCabal super.hnix (old: {
patches = old.patches or [] ++ [ patches = old.patches or [] ++ [
# should land in hnix-5.2 # should land in hnix-5.2
(pkgs.fetchpatch { (pkgs.fetchpatch {
@ -255,8 +258,7 @@ self: super: {
}) })
]; ];
testHaskellDepends = old.testHaskellDepends or [] ++ [ pkgs.nix ]; testHaskellDepends = old.testHaskellDepends or [] ++ [ pkgs.nix ];
broken = true; # can't cope with deriving-compat 0.5.x. })));
}));
# Fails for non-obvious reasons while attempting to use doctest. # Fails for non-obvious reasons while attempting to use doctest.
search = dontCheck super.search; search = dontCheck super.search;