From 2eeaffdf0a80c986ded645c61a76ef9a634b3861 Mon Sep 17 00:00:00 2001 From: Claudio Bley Date: Wed, 14 Sep 2022 13:44:59 +0200 Subject: [PATCH] circleci-cli: Rename executable to `circleci` This is the official name of the tool, so it matches the docs and usages out there. --- pkgs/development/tools/misc/circleci-cli/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/tools/misc/circleci-cli/default.nix b/pkgs/development/tools/misc/circleci-cli/default.nix index fa73ef702d91..5a0f853dd55d 100644 --- a/pkgs/development/tools/misc/circleci-cli/default.nix +++ b/pkgs/development/tools/misc/circleci-cli/default.nix @@ -17,6 +17,10 @@ buildGoModule rec { ldflags = [ "-s" "-w" "-X github.com/CircleCI-Public/circleci-cli/version.Version=${version}" "-X github.com/CircleCI-Public/circleci-cli/version.Commit=${src.rev}" "-X github.com/CircleCI-Public/circleci-cli/version.packageManager=nix" ]; + postInstall = '' + mv $out/bin/circleci-cli $out/bin/circleci + ''; + meta = with lib; { # Box blurb edited from the AUR package circleci-cli description = '' @@ -24,6 +28,7 @@ buildGoModule rec { run jobs as if they were running on the hosted CirleCI application. ''; maintainers = with maintainers; [ synthetica ]; + mainProgram = "circleci"; license = licenses.mit; homepage = "https://circleci.com/"; };