doc: Fix missing pre/post hooks everywhere

This commit is contained in:
Niklas Hambüchen 2024-06-10 10:45:36 +02:00
parent 2795c506fe
commit ee6c2bd2eb
10 changed files with 51 additions and 4 deletions

View file

@ -69,9 +69,13 @@ script to run it using a JRE. You can use `makeWrapper` for this:
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
makeWrapper ${jre}/bin/java $out/bin/foo \
--add-flags "-cp $out/share/java/foo.jar org.foo.Main"
runHook postInstall
'';
}
```