Skip to content

Commit feb0ff3

Browse files
committed
nix: Make clash-ffi work including tests
1 parent 1ad54f3 commit feb0ff3

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

nix/overlay-ghc910.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ in
1717

1818
# An ipv6 test fails on CI. Most likely due to missing kernel support?
1919
network = dontCheck prev.network;
20+
21+
# Marked broken and bounds exclude newer GHC. But seems to work fine.
22+
derive-storable-plugin = doJailbreak (markUnbroken prev.derive-storable-plugin);
2023
}

nix/overlay-ghc98.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@ in
2121

2222
# singletons-th 3.3 requires th-desugar 1.16
2323
th-desugar = prev.callHackage "th-desugar" "1.16" { };
24+
25+
# Marked broken and bounds exclude newer GHC. But seems to work fine.
26+
derive-storable-plugin = doJailbreak (markUnbroken prev.derive-storable-plugin);
2427
}

nix/overlay.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ let
9191
});
9292

9393
clash-ffi =
94-
hprev.callCabal2nix "clash-ffi" ../clash-ffi { };
94+
prev.haskell.lib.overrideCabal (hprev.callCabal2nix "clash-ffi" ../clash-ffi {})
95+
(drv: {
96+
testFlags = [ "--smallcheck-max-count" "2000" ];
97+
});
9598

9699
clash-ghc =
97100
let

0 commit comments

Comments
 (0)