11 stdenv.mkDerivation rec {
13 pname = "swagger-codegen";
15 jarfilename = "${pname}-cli-${version}.jar";
22 url = "mirror://maven/io/swagger/codegen/v3/${pname}-cli/${version}/${jarfilename}";
23 sha256 = "sha256-23opx14BRfG7SjcSKXu59wmrrJsJiGebiMRvidV2gE8=";
29 install -D $src $out/share/java/${jarfilename}
31 makeWrapper ${jre}/bin/java $out/bin/${pname}3 \
32 --add-flags "-jar $out/share/java/${jarfilename}"
35 passthru.tests.version = testers.testVersion {
36 package = swagger-codegen3;
37 command = "swagger-codegen3 version";
41 description = "Allows generation of API client libraries (SDK generation), server stubs and documentation automatically given an OpenAPI Spec";
42 homepage = "https://github.com/swagger-api/swagger-codegen/tree/3.0.0";
43 sourceProvenance = with sourceTypes; [ binaryBytecode ];
44 license = licenses.asl20;
45 maintainers = [ maintainers._1000101 ];
46 mainProgram = "swagger-codegen3";
47 platforms = platforms.all;