slipstream: run {pre,post}Install hooks
This commit is contained in:
parent
f70b53ea0b
commit
d2891886e2
1 changed files with 4 additions and 0 deletions
|
@ -19,6 +19,8 @@ mavenWithJdk.buildMavenPackage rec {
|
|||
nativeBuildInputs = [ mavenWithJdk makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/java
|
||||
install -Dm644 target/ftl-mod-manager-${version}.jar $out/share/java
|
||||
install -Dm644 target/modman.jar $out/share/java
|
||||
|
@ -26,6 +28,8 @@ mavenWithJdk.buildMavenPackage rec {
|
|||
makeWrapper ${wrapper} $out/bin/${pname} \
|
||||
--suffix PATH : ${lib.makeBinPath [ jdk ]} \
|
||||
--set jar_file "$out/share/java/modman.jar"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
wrapper = ./wrapper.sh;
|
||||
|
|
Loading…
Reference in a new issue