mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
also add succeedOnFailure/keepBuildDirectory behaviour to source-tarball.nix
svn path=/nixpkgs/trunk/; revision=25400
This commit is contained in:
parent
6591a859b2
commit
f6426bad3b
@ -68,6 +68,18 @@ stdenv.mkDerivation (
|
||||
|
||||
eval "$postAutoconf"
|
||||
'';
|
||||
|
||||
failureHook = ''
|
||||
if test -n "$succeedOnFailure"; then
|
||||
if test -n "$keepBuildDirectory"; then
|
||||
KEEPBUILDDIR="$out/`basename $TMPDIR`"
|
||||
header "Copying build directory to $KEEPBUILDDIR"
|
||||
ensureDir $KEEPBUILDDIR
|
||||
cp -vR $TMPDIR/* $KEEPBUILDDIR
|
||||
stopNest
|
||||
fi
|
||||
fi
|
||||
'';
|
||||
}
|
||||
|
||||
# Then, the caller-supplied attributes.
|
||||
|
Loading…
Reference in New Issue
Block a user