fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ callPackage, lib, stdenv, fetchurl, jre, makeWrapper }:
2
3let this = stdenv.mkDerivation rec {
4 version = "6.0.0-2021-01-18"; # Also update the fetchurl link
5 pname = "openapi-generator-cli";
6
7 jarfilename = "${pname}-${version}.jar";
8
9 nativeBuildInputs = [
10 makeWrapper
11 ];
12
13 src = fetchurl {
14 url = "https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/6.0.0-SNAPSHOT/openapi-generator-cli-6.0.0-20210118.082537-4.jar";
15 sha256 = "1ji3yw9dp4srlgqxvb21vrcp2bzj4himxsmp8l8zid9nxsc1m71x";
16 };
17
18 dontUnpack = true;
19
20 installPhase = ''
21 runHook preInstall
22
23 install -D "$src" "$out/share/java/${jarfilename}"
24
25 makeWrapper ${jre}/bin/java $out/bin/${pname} \
26 --add-flags "-jar $out/share/java/${jarfilename}"
27
28 runHook postInstall
29 '';
30
31 meta = with lib; {
32 description = "Allows generation of API client libraries (SDK generation), server stubs and documentation automatically given an OpenAPI Spec";
33 homepage = "https://github.com/OpenAPITools/openapi-generator";
34 license = licenses.asl20;
35 maintainers = [ maintainers.shou ];
36 };
37
38 passthru.tests.example = callPackage ./example.nix {
39 openapi-generator-cli = this;
40 };
41};
42in this