Commit Graph

13 Commits

Author SHA1 Message Date
Naïm Favier
44f30edf56
haskell.compiler.ghcjs: fix build (#228749)
Apply a patch from upstream `ghcjs/ghcjs/ghc-8.10` (not yet present in
the obsidiansystems fork we follow) to fix a build failure caused by an
emscripten update.

As the patch itself modifies patches that are used during configuration
(by `makePackages.sh`), it must be applied in the configured source derivation.
2023-05-02 11:46:08 +02:00
sternenseemann
0c761f74f0 haskell.compiler.ghcjs: allow building with transformers-compat-0.7
ghcjs's dependency optparse-applicative 0.15.1.0 restricts
transformers-compat to < 0.7 which is unnecessary.
2022-12-30 12:47:20 +01:00
sternenseemann
00ca09719c haskell.compiler.ghcjs: drop stale override for webdriver
webdriver-0.10.0.0 incorporated the changes we are interested.
2022-12-30 12:46:53 +01:00
sternenseemann
fde2e98a01 haskell.compiler.ghcjs: fix build with aeson 2.0 2022-04-11 01:26:04 +02:00
Ben Siraphob
0f050a1236
treewide: replace http://github.com with https://github.com 2022-01-07 09:58:36 +07:00
John Ericson
96a0040313
Merge pull request #151689 from Gabriel439/gabriella/fix_ghcjs_config.sub
haskell.compiler.ghcjs: Don't use upstream `config.sub`
2021-12-22 12:02:13 -05:00
Gabriella Gonzalez
0796ca8425
haskell.compiler.ghcjs: Fix Linux build (#151699)
Before this change the GHCJS build fails on Linux with:

```
Setup: Missing dependency on a foreign library:
* Missing (or bad) header file: ghc/utils/unlit/fs.h
```

The root cause is that the `./ghc/configure.ac` script is
responsible for copying `./ghc/utils/fs/fs.h` to
`./ghc/utils/unlit/fs.h`, but the script exits early if a C
compiler is not present.

This fixes that by ensuring that the C compiler is present
on all platforms (not just Darwin), so that the build now
works on Linux, too.
2021-12-22 08:43:38 -08:00
Gabriella Gonzalez
69125bc160 haskell.compiler.ghcjs: Don't use upstream config.sub
Before this change the `ghcjs` build fails with:

```
checking host system type... Invalid configuration `js-ghcjs': machine `js-unknown' not recognized
configure: error: …/bin/bash …/configured-ghcjs-src/lib/boot/pkg/unix/config.sub js-ghcjs failed
```

This fails because the `updateAutotoolsGnuConfigScriptsHook` overrides the
`config.sub` in the `unix` boot package to use the newer upstream
version of `config.sub`, but the newer version is incompatible with the
`js-ghcjs` host string used to configure the `unix` package.  The
fix is to undo the override, because the `config.sub` vendored within
`ghc` supports the host string correctly.
2021-12-21 21:22:58 -08:00
sternenseemann
e8f9f6efb6 haskell.compiler.ghcjs: fix evaluation regression
The treewide change 8547db919a was done
incorrectly for ghcjs. This hasn't been noticed so far due to a lack of
CI.
2021-11-15 21:03:33 +01:00
Sandro Jäckel
8547db919a
treewide: switch `builtins.fromJSON(builtins.readFile ./file.json)` to lib.importJSON ./file.json 2021-11-03 14:43:52 +01:00
Divam Narula
d032f60c37
ghcjs: Enable on darwin (#139067) 2021-09-26 00:51:46 -04:00
(cdep)illabout
3389aab889
haskell.compiler.ghcjs: mark hydraPlatforms as none because output is too large 2021-09-19 09:32:17 +09:00
Divam
ba25b274f4 ghcjs: init at 8.10.7
The src points to the obsidiansystems repo as it has the ghcjs ported from
8.10.5 to 8.10.7, and a bunch of other fixes (#812, #811, #809)
2021-09-15 12:51:34 +09:00