Skip to content

Commit

Permalink
acr-cli: init at 0.14 (#359508)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Nov 29, 2024
2 parents 84dafe5 + 2432cb6 commit dff42fc
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions pkgs/by-name/ac/acr-cli/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
lib,
buildGoModule,
fetchFromGitHub,
testers,
nix-update-script,
acr-cli,
}:
buildGoModule rec {
pname = "acr-cli";
version = "0.14";

src = fetchFromGitHub {
owner = "Azure";
repo = "acr-cli";
rev = "refs/tags/v${version}";
hash = "sha256-h4vRtxAu/ggEu5HuzaiEoLslOyAXP1rMI1/ua9YARug=";
};

vendorHash = null;

ldflags = [
"-s"
"-w"
"-X=github.com/Azure/acr-cli/version.Version=${version}"
"-X=github.com/Azure/acr-cli/version.Revision=${src.rev}"
];

executable = [ "acr" ];

passthru.tests.version = testers.testVersion {
package = acr-cli;
command = "acr version";
};

passthru.updateScript = nix-update-script { };

meta = {
description = "Command Line Tool for interacting with Azure Container Registry Images";
homepage = "https://github.com/Azure/acr-cli";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hausken ];
mainProgram = "acr-cli";
};
}

0 comments on commit dff42fc

Please sign in to comment.