ghcjs: fix on 32-bit systems

fixes #7341
This commit is contained in:
Charles Strahan 2015-04-14 19:54:57 -04:00
parent e86348fa66
commit 290c72753a

View file

@ -39,7 +39,10 @@
}:
let
version = "0.1.0";
libDir = "share/ghcjs/${pkgs.stdenv.system}-${version}-${ghc.version}/ghcjs";
ghcArch = if pkgs.stdenv.system == "i686-linux"
then "i386-linux"
else pkgs.stdenv.system;
libDir = "share/ghcjs/${ghcArch}-${version}-${ghc.version}/ghcjs";
ghcjsBoot = fetchgit {
url = git://github.com/ghcjs/ghcjs-boot.git;
rev = "8cd6144870470258fb037b3e04a0a2a98c2b6551"; # 7.10 branch