redocly-cli: rename to redocly
This commit is contained in:
parent
1192108554
commit
390a5cde6a
2 changed files with 14 additions and 10 deletions
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue