File tree Expand file tree Collapse file tree 6 files changed +18
-10
lines changed Expand file tree Collapse file tree 6 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,15 @@ executables:
2525 cabal-hpack :
2626 main : Main.hs
2727 source-dirs : app
28- ghc-options :
29- - -threaded
30- - -rtsopts
31- - -with-rtsopts=-N
28+ when :
29+ - condition : arch(wasm32)
30+ then :
31+ ghc-options : []
32+ else :
33+ ghc-options :
34+ - -threaded
35+ - -rtsopts
36+ - -with-rtsopts=-N
3237 dependencies :
3338 - cabal-hpack
3439
Original file line number Diff line number Diff line change 2929 . override ( lib . optionalAttrs stdenv . hostPlatform . isAndroid { setupBuildFlags = [ "--ghc-option=-optl-static" ] ; } ) ;
3030
3131in recurseIntoAttrs {
32- # This test seeems to be broken on 8.6 and 8.8 and ghcjs
33- meta . disabled = compiler-nix-name == "ghc865" || compiler-nix-name == "ghc884" || stdenv . hostPlatform . isGhcjs ;
32+ meta . disabled = stdenv . hostPlatform . isGhcjs || stdenv . hostPlatform . isWasm ;
3433 ifdInputs = {
3534 inherit ( project ) plan-nix ;
3635 } ;
Original file line number Diff line number Diff line change 2626 crossSuffix' = lib . optionalString ( stdenv . hostPlatform != stdenv . buildPlatform && stdenv . hostPlatform . isStatic ) "-static" + crossSuffix ;
2727
2828in recurseIntoAttrs ( {
29- # Does not work on ghcjs because it needs zlib.
30- meta . disabled = stdenv . hostPlatform . isGhcjs
29+ # Does not work on ghcjs because it needs zlib. Wasm needs network fixed.
30+ meta . disabled = stdenv . hostPlatform . isGhcjs || stdenv . hostPlatfom . isWasm
3131 # For some reason the `.tix` file is not created on armv7a android (not sure why)
3232 || stdenv . hostPlatform . isAndroid && stdenv . hostPlatform . isAarch32 ;
3333 run = stdenv . mkDerivation {
Original file line number Diff line number Diff line change @@ -16,5 +16,6 @@ executable test-ghc-options-exe
1616 main-is : Main.hs
1717 build-depends : base >= 4.7 && < 5 , test-ghc-options
1818 hs-source-dirs : app
19- ghc-options : -threaded -rtsopts -with-rtsopts=-N
19+ if !arch(wasm32)
20+ ghc-options : -threaded -rtsopts -with-rtsopts=-N
2021 default-language : Haskell2010
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ in recurseIntoAttrs {
1717 run = stdenv . mkDerivation {
1818 name = "ghcjs-overlay-test" ;
1919
20+ # Double conversion needs updating for wasm
21+ meta . disabled = stdenv . hostPlatform . isWasm ;
22+
2023 buildCommand = ''
2124 exe="${ packages . ghcjs-overlay-test . components . exes . ghcjs-overlay-test . exePath } "
2225 size=$(command stat --format '%s' "$exe")
Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ in recurseIntoAttrs {
1818 inherit ( project ) plan-nix ;
1919 } ;
2020
21- # Not sure why this breaks for ghc 8.10.7
2221 meta . disabled =
2322 builtins . elem compiler-nix-name [ "ghc91320250523" ]
2423 || stdenv . hostPlatform . isMusl
2524 || stdenv . hostPlatform . isGhcjs
25+ || stdenv . hostPlatform . isWasm
2626 || stdenv . hostPlatform . isWindows
2727 || ( haskellLib . isCrossHost && ( stdenv . hostPlatform . isAarch64 || stdenv . hostPlatform . isAarch32 ) ) ;
2828 build = packages . test . components . library ;
You can’t perform that action at this time.
0 commit comments