openapi-generator-cli: Invoke install hooks

This commit is contained in:
Robert Hensing 2021-04-14 16:18:50 +02:00
parent cd855e6746
commit 66fd2ea7ee
2 changed files with 8 additions and 0 deletions

View File

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

View File

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