mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
74fd5305f1
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/openapi-generator-cli/versions
35 lines
948 B
Nix
35 lines
948 B
Nix
{ stdenv, fetchurl, jre, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "4.0.1";
|
|
pname = "openapi-generator-cli";
|
|
|
|
jarfilename = "${pname}-${version}.jar";
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
];
|
|
|
|
src = fetchurl {
|
|
url = "http://central.maven.org/maven2/org/openapitools/${pname}/${version}/${jarfilename}";
|
|
sha256 = "1fglvn6ricvb0csbrjkjfp902y6drjf6cby5fihmr5v9m7pjym1y";
|
|
};
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
installPhase = ''
|
|
install -D "$src" "$out/share/java/${jarfilename}"
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/${pname} \
|
|
--add-flags "-jar $out/share/java/${jarfilename}"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Allows generation of API client libraries (SDK generation), server stubs and documentation automatically given an OpenAPI Spec";
|
|
homepage = https://github.com/OpenAPITools/openapi-generator;
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.shou ];
|
|
};
|
|
}
|
|
|