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.
This commit is contained in:
Eelco Dolstra 2017-05-03 17:39:43 +02:00
parent 61e5763694
commit 20d846bcdd
No known key found for this signature in database
GPG Key ID: 8170B4726D7198DE

View File

@ -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";
};