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 = ''