From 1192108554555992163010a52d85e359bc762110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20=C5=BDlender?= Date: Sun, 14 Apr 2024 20:52:35 +0200 Subject: [PATCH 1/2] redocly-cli: 1.6.0 -> 1.12.0 --- pkgs/by-name/re/redocly-cli/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/re/redocly-cli/package.nix b/pkgs/by-name/re/redocly-cli/package.nix index fd3606c1e4c8..0bdc2fee809b 100644 --- a/pkgs/by-name/re/redocly-cli/package.nix +++ b/pkgs/by-name/re/redocly-cli/package.nix @@ -5,17 +5,17 @@ }: buildNpmPackage rec { - pname = "redocly-cli"; - version = "1.6.0"; + pname = "redocly"; + version = "1.12.0"; src = fetchFromGitHub { owner = "Redocly"; repo = "redocly-cli"; rev = "@redocly/cli@${version}"; - hash = "sha256-xoehTTpXT/9tlL0VoDQwKbyUnNGeMyH+VBIVLiz69ko="; + hash = "sha256-KfNwBRGDFNMsba+yjwUHiiO2BJbIl4pW1b3cvLBe+lk="; }; - npmDepsHash = "sha256-9fI9P96iNmHrhjbgjePpRnknFe3yIjkirOoIMkVGkH4="; + npmDepsHash = "sha256-I3cxMw9zOZb9sfP8UUoHc1UJ0RpDqVn9D29arSdNob4="; npmBuildScript = "prepare"; From 390a5cde6ade84dbf6487de3d79916042ad20ed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20=C5=BDlender?= Date: Thu, 2 May 2024 07:26:28 +0200 Subject: [PATCH 2/2] redocly-cli: rename to redocly --- .../re/{redocly-cli => redocly}/package.nix | 23 +++++++++++-------- pkgs/top-level/aliases.nix | 1 + 2 files changed, 14 insertions(+), 10 deletions(-) rename pkgs/by-name/re/{redocly-cli => redocly}/package.nix (75%) diff --git a/pkgs/by-name/re/redocly-cli/package.nix b/pkgs/by-name/re/redocly/package.nix similarity index 75% rename from pkgs/by-name/re/redocly-cli/package.nix rename to pkgs/by-name/re/redocly/package.nix index 0bdc2fee809b..eb1b0715d406 100644 --- a/pkgs/by-name/re/redocly-cli/package.nix +++ b/pkgs/by-name/re/redocly/package.nix @@ -2,6 +2,8 @@ , buildNpmPackage , fetchFromGitHub , makeWrapper +, redocly +, testers }: buildNpmPackage rec { @@ -32,24 +34,25 @@ buildNpmPackage rec { mkdir $out/bin makeWrapper $out/lib/node_modules/@redocly/cli/node_modules/@redocly/cli/bin/cli.js \ - $out/bin/redocly-cli \ + $out/bin/redocly \ --set-default REDOCLY_TELEMETRY off \ --set-default CI true # Silence update messages + + # Symlink for backwards compatibility. Remove after 24.05. + ln -s $out/bin/redocly $out/bin/redocly-cli ''; - installCheckPhase = '' - runHook preInstallCheck - $out/bin/redocly-cli --version - runHook postInstallCheck - ''; - - doInstallCheck = true; + passthru = { + tests.version = testers.testVersion { + package = redocly; + }; + }; meta = { - description = "Redocly CLI makes OpenAPI easy. Lint/validate to any standard, generate beautiful docs, and more."; + description = "Makes OpenAPI easy. Lint/validate to any standard, generate beautiful docs, and more"; homepage = "https://github.com/Redocly/redocly-cli"; license = lib.licenses.mit; - mainProgram = "redocly-cli"; + mainProgram = "redocly"; maintainers = with lib.maintainers; [ szlend ]; }; } diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index faa715ecd4f6..f6bccda40616 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1066,6 +1066,7 @@ mapAliases ({ rccl = throw "'rccl' has been replaced with 'rocmPackages.rccl'"; # Added 2023-10-08 rdc = throw "'rdc' has been replaced with 'rocmPackages.rdc'"; # Added 2023-10-08 readline63 = throw "'readline63' has been replaced with 'readline'"; # Added 2024-02-10 + redocly-cli = redocly; # Added 2024-04-14 redpanda = redpanda-client; # Added 2023-10-14 restya-board = throw "'restya-board' has been removed from nixpkgs, as it was broken and unmaintained"; # Added 2024-01-22 retdec-full = throw "'retdec-full' is no longer needed, please use 'retdec'"; # Added 2024-02-05