mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 04:05:40 +03:00
doc: Fix missing pre/post hooks everywhere
This commit is contained in:
parent
2795c506fe
commit
ee6c2bd2eb
10 changed files with 51 additions and 4 deletions
|
@ -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
|
||||
'';
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue