about summary refs log tree commit diff
path: root/pkgs/development/compilers/elm
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2014-04-08 13:17:40 +0200
committerPeter Simons <simons@cryp.to>2014-04-08 13:17:51 +0200
commitd9c8db4a20a86d66ab35f5a7f1a11db54973173b (patch)
tree1b671e870ed6bc6c763fc3fbff5a1aa36958202f /pkgs/development/compilers/elm
parentc7c65daf32720cc3235db206c33b90558c186fcf (diff)
downloadnixlib-d9c8db4a20a86d66ab35f5a7f1a11db54973173b.tar
nixlib-d9c8db4a20a86d66ab35f5a7f1a11db54973173b.tar.gz
nixlib-d9c8db4a20a86d66ab35f5a7f1a11db54973173b.tar.bz2
nixlib-d9c8db4a20a86d66ab35f5a7f1a11db54973173b.tar.lz
nixlib-d9c8db4a20a86d66ab35f5a7f1a11db54973173b.tar.xz
nixlib-d9c8db4a20a86d66ab35f5a7f1a11db54973173b.tar.zst
nixlib-d9c8db4a20a86d66ab35f5a7f1a11db54973173b.zip
Elm: fix build by ignoring the build instructions provided by upstream
According to <https://github.com/elm-lang/Elm/issues/384>, Elm's release
archive comes with a Setup.hs that cannot compile an Elm release. Duh!

Replacing the custom Setup.hs file with a dummy version fixes this
issue.

Close <https://github.com/NixOS/nixpkgs/issues/2089>.
Diffstat (limited to 'pkgs/development/compilers/elm')
-rw-r--r--pkgs/development/compilers/elm/elm.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/compilers/elm/elm.nix b/pkgs/development/compilers/elm/elm.nix
index 5a9ba8f63792..bc9f73b28495 100644
--- a/pkgs/development/compilers/elm/elm.nix
+++ b/pkgs/development/compilers/elm/elm.nix
@@ -23,6 +23,10 @@ cabal.mkDerivation (self: {
     transformers unionFind unorderedContainers
   ];
   doCheck = false;
+  preConfigure = ''
+    rm -f Setup.hs
+    echo -e "import Distribution.Simple\nmain=defaultMain\n" > Setup.hs
+  '';
   meta = {
     homepage = "http://elm-lang.org";
     description = "The Elm language module";