From 7aaed73c5d99720d9f0891b0db816ebf00738704 Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Mon, 17 Jun 2019 12:03:04 +0200 Subject: [PATCH] run pre/post hooks --- pkgs/nim-packages/generic.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/nim-packages/generic.nix b/pkgs/nim-packages/generic.nix index bdd7105..ab9e1c3 100644 --- a/pkgs/nim-packages/generic.nix +++ b/pkgs/nim-packages/generic.nix @@ -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 = ''