slipstream: run {pre,post}Install hooks

This commit is contained in:
mib 2023-07-02 13:45:06 +02:00
parent f70b53ea0b
commit d2891886e2
No known key found for this signature in database
GPG Key ID: CF6E67DED6DC1E3F

View File

@ -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;