Skip to content

Commit

Permalink
TO BE SQUASHED: use preInstall and postInstall hooks
Browse files Browse the repository at this point in the history
Signed-off-by: jdev082 <[email protected]>
  • Loading branch information
jdev082 committed Oct 29, 2024
1 parent beef8d4 commit 74ab68e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/by-name/ju/junest/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@ stdenvNoCC.mkDerivation rec {
dontBuild = true;

installPhase = ''
runHook preInstall
mkdir -p $out/bin
mkdir -p $out/lib
cp -r $src/bin/ $out/
cp -r $src/lib/ $out/
# cp -r $src/VERSION $out/
substituteInPlace $out/bin/junest --replace-fail '$(cat "$JUNEST_BASE"/VERSION)' ${version}
substituteInPlace $out/lib/core/common.sh --replace-fail "wget" ${lib.getExe wget}
runHook postInstall
'';

meta = {
Expand Down

0 comments on commit 74ab68e

Please sign in to comment.