run pre/post hooks
This commit is contained in:
parent
6cca018a82
commit
7aaed73c5d
|
@ -43,13 +43,19 @@ stdenv.mkDerivation {
|
|||
LD_LIBRARY_PATH = makeLibraryPath (rBuildInputs ++ rNativeBuildInputs);
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
HOME=$TMPDIR
|
||||
NIMBLE_DIR=$HOME/.nimble
|
||||
'' + copyNimDeps + ''
|
||||
nimble install
|
||||
|
||||
runHook PostBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir $out
|
||||
if [ -d $NIMBLE_DIR/bin ]; then
|
||||
cp -RL $NIMBLE_DIR/bin $out
|
||||
|
@ -60,6 +66,8 @@ stdenv.mkDerivation {
|
|||
mkdir -p $out/.nimble
|
||||
cp -R $NIMBLE_DIR/pkgs $out/.nimble
|
||||
fi
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
shellHook = ''
|
||||
|
|
Loading…
Reference in New Issue