From bf6fdae0f26546d96d08a51f623f910c2a0efa18 Mon Sep 17 00:00:00 2001 From: Ryan Trinkle Date: Wed, 27 Jul 2016 11:44:39 -0400 Subject: [PATCH] ghcjs: work around haskell/cabal#3494 See also NixOS/nixpkgs#16144 --- pkgs/development/compilers/ghcjs/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/compilers/ghcjs/default.nix b/pkgs/development/compilers/ghcjs/default.nix index f677cd771229..2c7688190978 100644 --- a/pkgs/development/compilers/ghcjs/default.nix +++ b/pkgs/development/compilers/ghcjs/default.nix @@ -97,6 +97,8 @@ in mkDerivation (rec { --replace "@CC@" "${stdenv.cc}/bin/cc" ''; preBuild = '' + export HOME="$TMP" + local topDir=$out/lib/ghcjs-${version} mkdir -p $topDir