nixBuild: Respect the preHook/postHook of the caller
This commit is contained in:
parent
7ff232e958
commit
f01ecbee50
@ -18,6 +18,8 @@
|
|||||||
, prePhases ? []
|
, prePhases ? []
|
||||||
, postPhases ? []
|
, postPhases ? []
|
||||||
, buildInputs ? []
|
, buildInputs ? []
|
||||||
|
, preHook ? ""
|
||||||
|
, postHook ? ""
|
||||||
, ... } @ args:
|
, ... } @ args:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -90,6 +92,7 @@ stdenv.mkDerivation (
|
|||||||
. ${./functions.sh}
|
. ${./functions.sh}
|
||||||
origSrc=$src
|
origSrc=$src
|
||||||
src=$(findTarball $src)
|
src=$(findTarball $src)
|
||||||
|
${postHook}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preHook = ''
|
preHook = ''
|
||||||
@ -105,6 +108,8 @@ stdenv.mkDerivation (
|
|||||||
shopt -s expand_aliases
|
shopt -s expand_aliases
|
||||||
alias make="scan-build -o _clang_analyze_$name --html-title='Scan results for $name' make"
|
alias make="scan-build -o _clang_analyze_$name --html-title='Scan results for $name' make"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
${preHook}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Clean up after analysis
|
# Clean up after analysis
|
||||||
|
Loading…
x
Reference in New Issue
Block a user