diff options
author | Simon Žlender <pub.git@zlender.si> | 2024-05-02 07:26:28 +0200 |
---|---|---|
committer | Simon Žlender <pub.git@zlender.si> | 2024-05-02 07:26:28 +0200 |
commit | 390a5cde6ade84dbf6487de3d79916042ad20ed1 (patch) | |
tree | 7df72e8908e7fe28d8e1ada778e06f9072439ee7 /pkgs/by-name/re | |
parent | 1192108554555992163010a52d85e359bc762110 (diff) |
redocly-cli: rename to redocly
Diffstat (limited to 'pkgs/by-name/re')
-rw-r--r-- | pkgs/by-name/re/redocly/package.nix (renamed from pkgs/by-name/re/redocly-cli/package.nix) | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/pkgs/by-name/re/redocly-cli/package.nix b/pkgs/by-name/re/redocly/package.nix index 0bdc2fee809b9..eb1b0715d4069 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 - ''; - installCheckPhase = '' - runHook preInstallCheck - $out/bin/redocly-cli --version - runHook postInstallCheck + # Symlink for backwards compatibility. Remove after 24.05. + ln -s $out/bin/redocly $out/bin/redocly-cli ''; - 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 ]; }; } |