From 66fd2ea7ee1147fe9c008cc7b1ade3e91a9a7ae0 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Wed, 14 Apr 2021 16:18:50 +0200 Subject: [PATCH] openapi-generator-cli: Invoke install hooks --- pkgs/tools/networking/openapi-generator-cli/default.nix | 4 ++++ pkgs/tools/networking/openapi-generator-cli/unstable.nix | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/pkgs/tools/networking/openapi-generator-cli/default.nix b/pkgs/tools/networking/openapi-generator-cli/default.nix index a88a807a9f97..b195c655c93f 100644 --- a/pkgs/tools/networking/openapi-generator-cli/default.nix +++ b/pkgs/tools/networking/openapi-generator-cli/default.nix @@ -18,10 +18,14 @@ let this = stdenv.mkDerivation rec { phases = [ "installPhase" ]; installPhase = '' + runHook preInstall + install -D "$src" "$out/share/java/${jarfilename}" makeWrapper ${jre}/bin/java $out/bin/${pname} \ --add-flags "-jar $out/share/java/${jarfilename}" + + runHook postInstall ''; meta = with lib; { diff --git a/pkgs/tools/networking/openapi-generator-cli/unstable.nix b/pkgs/tools/networking/openapi-generator-cli/unstable.nix index 63a780951aca..306654f05d99 100644 --- a/pkgs/tools/networking/openapi-generator-cli/unstable.nix +++ b/pkgs/tools/networking/openapi-generator-cli/unstable.nix @@ -18,10 +18,14 @@ let this = stdenv.mkDerivation rec { phases = [ "installPhase" ]; installPhase = '' + runHook preInstall + install -D "$src" "$out/share/java/${jarfilename}" makeWrapper ${jre}/bin/java $out/bin/${pname} \ --add-flags "-jar $out/share/java/${jarfilename}" + + runHook postInstall ''; meta = with lib; {