Skip to content

Commit c658644

Browse files
committed
Try to fix js-template-haskell test
1 parent 905f598 commit c658644

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

overlays/haskell.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,9 @@ final: prev: {
782782
"ghc-bignum"]
783783
++ final.lib.optionals (builtins.compareVersions config.compiler.version "9.9" >= 0) [
784784
"ghc-internal"]
785+
++ final.lib.optionals (pkgs.stdenv.hostPlatform.isGhcjs) ([
786+
# ghci and its dependencies
787+
"ghci" "binary" "bytestring" "containers" "template-haskell" "array" "deepseq" "filepath" "ghc-boot" "ghc-boot-th" "ghc-heap" "transformers" "unix" "directory" "time" "ghc-platform" "os-string"]
785788
++ final.lib.optionals (builtins.compareVersions config.compiler.version "8.11" < 0) [
786789
"ghcjs-prim" "ghcjs-th"]);
787790
})

test/js-template-haskell/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ let
1010
cabalProjectLocal = ''
1111
if arch(javascript)
1212
extra-packages: ghci
13+
constraints: ghcjs installed
1314
constraints: text -simdutf, text source
1415
'';
1516
};

0 commit comments

Comments
 (0)