proj: fix build on Hydra

Tests need access to writable home directory.

Also make the temporary directory (as searched by the tests) writable,
for completeness, although those tests seem to exit early when they
cannot write to the temporary directory without reaching an assert (and
thus without failing).

Fixes #146358
This commit is contained in:
Sebastián Mancilla 2021-11-18 12:58:09 -03:00
parent 57a7c5de18
commit 531c9c19e3

View file

@ -42,6 +42,11 @@ stdenv.mkDerivation rec {
"-DRUN_NETWORK_DEPENDENT_TESTS=OFF" "-DRUN_NETWORK_DEPENDENT_TESTS=OFF"
]; ];
preCheck = ''
export HOME=$TMPDIR
export TMP=$TMPDIR
'';
doCheck = true; doCheck = true;
meta = with lib; { meta = with lib; {