about summary refs log tree commit diff
path: root/pkgs/development/compilers/ghcjs
diff options
context:
space:
mode:
authorGabriella Gonzalez <Gabriel439@gmail.com>2021-12-22 08:43:38 -0800
committerGitHub <noreply@github.com>2021-12-22 08:43:38 -0800
commit0796ca8425ac51eca17267a73980a531d4f2fa42 (patch)
treee01bd0a07d91fb82761aff452406f5a9794b71d5 /pkgs/development/compilers/ghcjs
parent01506119b555c986fd27f0e33aaf08a8d37a93c9 (diff)
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.
Diffstat (limited to 'pkgs/development/compilers/ghcjs')
-rw-r--r--pkgs/development/compilers/ghcjs/8.10/configured-ghcjs-src.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/development/compilers/ghcjs/8.10/configured-ghcjs-src.nix b/pkgs/development/compilers/ghcjs/8.10/configured-ghcjs-src.nix
index 9fa6fae1a593e..4ea2de99fc9a3 100644
--- a/pkgs/development/compilers/ghcjs/8.10/configured-ghcjs-src.nix
+++ b/pkgs/development/compilers/ghcjs/8.10/configured-ghcjs-src.nix
@@ -26,8 +26,7 @@ runCommand "configured-ghcjs-src" {
     happy
     alex
     cabal-install
-  ] ++ lib.optionals stdenv.isDarwin [
-    gcc # https://github.com/ghcjs/ghcjs/issues/663
+    gcc
   ];
   inherit ghcjsSrc;
 } ''