openapi-generator-cli: Invoke install hooks
This commit is contained in:
parent
cd855e6746
commit
66fd2ea7ee
|
@ -18,10 +18,14 @@ let this = stdenv.mkDerivation rec {
|
||||||
phases = [ "installPhase" ];
|
phases = [ "installPhase" ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
install -D "$src" "$out/share/java/${jarfilename}"
|
install -D "$src" "$out/share/java/${jarfilename}"
|
||||||
|
|
||||||
makeWrapper ${jre}/bin/java $out/bin/${pname} \
|
makeWrapper ${jre}/bin/java $out/bin/${pname} \
|
||||||
--add-flags "-jar $out/share/java/${jarfilename}"
|
--add-flags "-jar $out/share/java/${jarfilename}"
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -18,10 +18,14 @@ let this = stdenv.mkDerivation rec {
|
||||||
phases = [ "installPhase" ];
|
phases = [ "installPhase" ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
install -D "$src" "$out/share/java/${jarfilename}"
|
install -D "$src" "$out/share/java/${jarfilename}"
|
||||||
|
|
||||||
makeWrapper ${jre}/bin/java $out/bin/${pname} \
|
makeWrapper ${jre}/bin/java $out/bin/${pname} \
|
||||||
--add-flags "-jar $out/share/java/${jarfilename}"
|
--add-flags "-jar $out/share/java/${jarfilename}"
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue