From 3d8a3e97bdc91c07d3e29c55d4090ab86eb6e38e Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Wed, 3 Sep 2014 22:20:31 +0200 Subject: [PATCH] Fixed buildLocalCabal by defining temporary $HOME MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes build error: building path(s) ‘/nix/store/c8i7gm134aij9330h77l4sdna635yj0a-foo.nix’ building /nix/store/c8i7gm134aij9330h77l4sdna635yj0a-foo.nix cabal2nix: /homeless-shelter/.cache: createDirectory: does not exist (No such file or directory) error: syntax error, unexpected $end, at /nix/store/c8i7gm134aij9330h77l4sdna635yj0a-foo.nix:1:1 (use ‘--show-trace’ to show detailed location information)… --- pkgs/top-level/haskell-packages.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index cb2353617830..3bbee1d6fe5c 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -3037,6 +3037,7 @@ self : let callPackage = x : y : modifyPrio (newScope self x y); in name = "${name}.nix"; buildCommand = '' + export HOME="$TMPDIR" ${self.cabal2nix}/bin/cabal2nix ${src + "/${name}.cabal"} --sha256=FILTERME \ | grep -v FILTERME | sed \ -e 's/licenses.proprietary/licenses.unfree/' \