mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 14:41:17 +00:00
Merge pull request #55203 from Shou/init-openapi-generator
openapi-generator-cli: init at 3.3.4
This commit is contained in:
commit
f19c75fc65
|
@ -4176,6 +4176,11 @@
|
|||
github = "shlevy";
|
||||
name = "Shea Levy";
|
||||
};
|
||||
shou = {
|
||||
email = "x+g@shou.io";
|
||||
github = "Shou";
|
||||
name = "Benedict Aas";
|
||||
};
|
||||
siddharthist = {
|
||||
email = "langston.barrett@gmail.com";
|
||||
github = "siddharthist";
|
||||
|
|
34
pkgs/tools/networking/openapi-generator-cli/default.nix
Normal file
34
pkgs/tools/networking/openapi-generator-cli/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ stdenv, fetchurl, jre, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "3.3.4";
|
||||
pname = "openapi-generator-cli";
|
||||
|
||||
jarfilename = "${pname}-${version}.jar";
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://central.maven.org/maven2/org/openapitools/${pname}/${version}/${jarfilename}";
|
||||
sha256 = "24cb04939110cffcdd7062d2f50c6f61159dc3e0ca3b8aecbae6ade53ad3dc8c";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
|
|
@ -4543,6 +4543,8 @@ in
|
|||
inherit (gnome3) defaultIconTheme;
|
||||
};
|
||||
|
||||
openapi-generator-cli = callPackage ../tools/networking/openapi-generator-cli { };
|
||||
|
||||
opencc = callPackage ../tools/text/opencc { };
|
||||
|
||||
opencl-info = callPackage ../tools/system/opencl-info { };
|
||||
|
|
Loading…
Reference in a new issue