summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-common.nix
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2018-05-15 03:28:39 +0200
committerProfpatsch <mail@profpatsch.de>2018-05-15 04:03:28 +0200
commit669f9453dc94c5ab24a425536b98c7f4d5cce359 (patch)
treed7b1e210de9b0bbbf6a2037bf3350b825f9a8bb5 /pkgs/development/haskell-modules/configuration-common.nix
parent99f008849ebb80373036713d08f7707da1adfd3f (diff)
downloadnixlib-669f9453dc94c5ab24a425536b98c7f4d5cce359.tar
nixlib-669f9453dc94c5ab24a425536b98c7f4d5cce359.tar.gz
nixlib-669f9453dc94c5ab24a425536b98c7f4d5cce359.tar.bz2
nixlib-669f9453dc94c5ab24a425536b98c7f4d5cce359.tar.lz
nixlib-669f9453dc94c5ab24a425536b98c7f4d5cce359.tar.xz
nixlib-669f9453dc94c5ab24a425536b98c7f4d5cce359.tar.zst
nixlib-669f9453dc94c5ab24a425536b98c7f4d5cce359.zip
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.
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-common.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix15
1 files changed, 14 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index c18c69f9a447..8278b4bdc5ea 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -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;