18a37ae6c1
Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/x901ajf5y7i8xg81lnngw7p9fwyn73da-swagger-codegen-2.3.1/bin/swagger-codegen help` got 0 exit code - ran `/nix/store/x901ajf5y7i8xg81lnngw7p9fwyn73da-swagger-codegen-2.3.1/bin/swagger-codegen version` and found version 2.3.1 - found 2.3.1 with grep in /nix/store/x901ajf5y7i8xg81lnngw7p9fwyn73da-swagger-codegen-2.3.1 - found 2.3.1 in filename of file in /nix/store/x901ajf5y7i8xg81lnngw7p9fwyn73da-swagger-codegen-2.3.1 cc "@jraygauthier"
34 lines
1,010 B
Nix
34 lines
1,010 B
Nix
{ stdenv, fetchurl, jre, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "2.3.1";
|
|
pname = "swagger-codegen";
|
|
name = "${pname}-${version}";
|
|
|
|
jarfilename = "${pname}-cli-${version}.jar";
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
];
|
|
|
|
src = fetchurl {
|
|
url = "https://oss.sonatype.org/content/repositories/releases/io/swagger/${pname}-cli/${version}/${jarfilename}";
|
|
sha256 = "171qr0zx7i6cykv54vqjf3mplrf7w4a1fpq47wsj861lbf8xm322";
|
|
};
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
installPhase = ''
|
|
install -D "$src" "$out/share/java/${jarfilename}"
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/swagger-codegen \
|
|
--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/swagger-api/swagger-codegen;
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.jraygauthier ];
|
|
};
|
|
}
|