nix: Fix build errors with stale .tix files present

This commit is contained in:
Wolfgang Walther
2021-01-02 13:51:00 +01:00
committed by Wolfgang Walther
parent af2788468e
commit 56a7bc5030
@@ -22,6 +22,14 @@ let
''
#!${runtimeShell}
set -euo pipefail
# make sure that no script creates conflicting tix files
# postgrest-coverage will override HPCTIXFILE to make proper use of it
if test ! -v HPCTIXFILE; then
hpctixdir=$(mktemp -d)
export HPCTIXFILE="$hpctixdir"/postgrest.tix
trap 'rm -rf $hpctixdir' EXIT
fi
''
+ lib.optionalString inRootDir ''
cd "$(${git}/bin/git rev-parse --show-toplevel)"
@@ -32,7 +40,7 @@ let
exit 1
fi
''
+ text;
+ "(${text})";
checkPhase =
''