mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
haskellPackages.hnix: jailbreak & fix tests
Some of the new tests need the `nix` executable on `PATH`. One also needs `hpack`, but we really don’t want to embiggen (heh) the closure because of that.
This commit is contained in:
parent
99f008849e
commit
669f9453dc
1 changed files with 14 additions and 1 deletions
|
@ -208,6 +208,9 @@ self: super: {
|
|||
# https://github.com/jputcu/serialport/issues/25
|
||||
serialport = dontCheck super.serialport;
|
||||
|
||||
serialise = dontCheck super.serialise;
|
||||
cryptohash-sha512 = dontCheck super.cryptohash-sha512;
|
||||
|
||||
# https://github.com/kazu-yamamoto/simple-sendfile/issues/17
|
||||
simple-sendfile = dontCheck super.simple-sendfile;
|
||||
|
||||
|
@ -247,7 +250,17 @@ self: super: {
|
|||
digit = doJailbreak super.digit;
|
||||
|
||||
# https://github.com/jwiegley/hnix/issues/98 - tied to an older deriving-compat
|
||||
hnix = doJailbreak super.hnix;
|
||||
hnix = doJailbreak (overrideCabal super.hnix (old: {
|
||||
patches = old.patches or [] ++ [
|
||||
# should land in hnix-5.2
|
||||
(pkgs.fetchpatch {
|
||||
url = "https://github.com/haskell-nix/hnix/commit/9cfe060a9dbe9e7c64867956a0523eed9661803a.patch";
|
||||
sha256 = "0ci4n7nw2pzqw0gkmkp4szzvxjyb143a4znjm39jmb0s397a68sh";
|
||||
name = "disable-hpack-test-by-default.patch";
|
||||
})
|
||||
];
|
||||
testHaskellDepends = old.testHaskellDepends or [] ++ [ pkgs.nix ];
|
||||
}));
|
||||
|
||||
# Fails for non-obvious reasons while attempting to use doctest.
|
||||
search = dontCheck super.search;
|
||||
|
|
Loading…
Reference in a new issue