From 20d846bcdd42698004a16f8ef1f181f1e102742d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 3 May 2017 17:39:43 +0200 Subject: [PATCH] nixUnstable.perlBindings: Fix Nix::Config generation The configure script calls nix-instantiate, which fails if /nix/var doesn't exist (e.g. in a sandbox). This caused a bogus Nix::Config module to be generated, causing issues in Hydra. --- pkgs/tools/package-management/nix/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/package-management/nix/default.nix b/pkgs/tools/package-management/nix/default.nix index ffac378eaf71..b688d2196865 100644 --- a/pkgs/tools/package-management/nix/default.nix +++ b/pkgs/tools/package-management/nix/default.nix @@ -116,9 +116,10 @@ let configureFlags = [ "--with-dbi=${perlPackages.DBI}/${perl.libPrefix}" "--with-dbd-sqlite=${perlPackages.DBDSQLite}/${perl.libPrefix}" - "--with-www-curl=${perlPackages.WWWCurl}/${perl.libPrefix}" ]; + preConfigure = "export NIX_STATE_DIR=$TMPDIR"; + preBuild = "unset NIX_INDENT_MAKE"; };