nix-build: Honor user-provided `failureHook'.
svn path=/nixpkgs/trunk/; revision=32680
This commit is contained in:
parent
a70a76086c
commit
bd68cc6f5b
@ -12,6 +12,7 @@
|
|||||||
, lcovExtraTraceFiles ? []
|
, lcovExtraTraceFiles ? []
|
||||||
, src, stdenv
|
, src, stdenv
|
||||||
, name ? if doCoverageAnalysis then "nix-coverage" else "nix-build"
|
, name ? if doCoverageAnalysis then "nix-coverage" else "nix-build"
|
||||||
|
, failureHook ? null
|
||||||
, ... } @ args:
|
, ... } @ args:
|
||||||
|
|
||||||
stdenv.mkDerivation (
|
stdenv.mkDerivation (
|
||||||
@ -37,7 +38,8 @@ stdenv.mkDerivation (
|
|||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
failureHook = ''
|
failureHook = (stdenv.lib.optionalString (failureHook != null) failureHook) +
|
||||||
|
''
|
||||||
if test -n "$succeedOnFailure"; then
|
if test -n "$succeedOnFailure"; then
|
||||||
if test -n "$keepBuildDirectory"; then
|
if test -n "$keepBuildDirectory"; then
|
||||||
KEEPBUILDDIR="$out/`basename $TMPDIR`"
|
KEEPBUILDDIR="$out/`basename $TMPDIR`"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user