From d2891886e261dd9f95ac4d532112f1279e445ffd Mon Sep 17 00:00:00 2001 From: mib Date: Sun, 2 Jul 2023 13:45:06 +0200 Subject: [PATCH] slipstream: run {pre,post}Install hooks --- pkgs/tools/games/slipstream/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/tools/games/slipstream/default.nix b/pkgs/tools/games/slipstream/default.nix index 549aa075a84c..c68f7dd94612 100644 --- a/pkgs/tools/games/slipstream/default.nix +++ b/pkgs/tools/games/slipstream/default.nix @@ -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;