nix: Fix build errors with stale .tix files present
This commit is contained in:
committed by
Wolfgang Walther
parent
af2788468e
commit
56a7bc5030
@@ -22,6 +22,14 @@ let
|
|||||||
''
|
''
|
||||||
#!${runtimeShell}
|
#!${runtimeShell}
|
||||||
set -euo pipefail
|
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 ''
|
+ lib.optionalString inRootDir ''
|
||||||
cd "$(${git}/bin/git rev-parse --show-toplevel)"
|
cd "$(${git}/bin/git rev-parse --show-toplevel)"
|
||||||
@@ -32,7 +40,7 @@ let
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
''
|
''
|
||||||
+ text;
|
+ "(${text})";
|
||||||
|
|
||||||
checkPhase =
|
checkPhase =
|
||||||
''
|
''
|
||||||
|
|||||||
Reference in New Issue
Block a user