Merge pull request #278270 from konradmalik/openapi-generator-cli

openapi-generator-cli: delete unstable version
This commit is contained in:
Weijia Wang 2024-01-04 23:37:57 +01:00 committed by GitHub
commit 571c9cb1ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 43 deletions

View file

@ -1,42 +0,0 @@
{ callPackage, lib, stdenv, fetchurl, jre, makeWrapper }:
let this = stdenv.mkDerivation rec {
version = "6.0.0-2022-03-18"; # Also update the fetchurl link
pname = "openapi-generator-cli";
jarfilename = "${pname}-${version}.jar";
nativeBuildInputs = [
makeWrapper
];
src = fetchurl {
url = "https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/6.0.0-SNAPSHOT/openapi-generator-cli-6.0.0-20220318.042704-93.jar";
sha256 = "1h126kpbnpbrsnjrxb09hzb796dwl4g58d6wrh1hhv8svwy5p0bl";
};
dontUnpack = true;
installPhase = ''
runHook preInstall
install -D "$src" "$out/share/java/${jarfilename}"
makeWrapper ${jre}/bin/java $out/bin/${pname} \
--add-flags "-jar $out/share/java/${jarfilename}"
runHook postInstall
'';
meta = with 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 ];
};
passthru.tests.example = callPackage ./example.nix {
openapi-generator-cli = this;
};
};
in this

View file

@ -719,6 +719,7 @@ mapAliases ({
opa = throw "opa has been removed from nixpkgs as upstream has abandoned the project"; # Added 2023-03-21
opam_1_2 = throw "'opam_1_2' has been renamed to/replaced by 'opam'"; # Added 2023-03-08
openafs_1_8 = openafs; # Added 2022-08-22
openapi-generator-cli-unstable = throw "openapi-generator-cli-unstable was removed as it was not being updated; consider openapi-generator-cli instead"; # Added 2024-01-02
openbangla-keyboard = throw "openbangla-keyboard has been replaced by ibus-engines.openbangla-keyboard and fcitx5-openbangla-keyboard"; # added 2023-10-10
opencascade = throw "'opencascade' has been removed as it is unmaintained; consider opencascade-occt instead'"; # Added 2023-09-18
openconnect_head = openconnect_unstable; # Added 2022-03-29

View file

@ -11560,7 +11560,6 @@ with pkgs;
ooniprobe-cli = callPackage ../tools/networking/ooniprobe-cli { };
openapi-generator-cli = callPackage ../tools/networking/openapi-generator-cli { jre = pkgs.jre_headless; };
openapi-generator-cli-unstable = callPackage ../tools/networking/openapi-generator-cli/unstable.nix { jre = pkgs.jre_headless; };
openboard = libsForQt5.callPackage ../applications/graphics/openboard { };