Files
nixpkgs/pkgs/by-name/ac/acr-cli/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

46 lines
961 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
testers,
nix-update-script,
acr-cli,
}:
buildGoModule rec {
pname = "acr-cli";
version = "0.16";
src = fetchFromGitHub {
owner = "Azure";
repo = "acr-cli";
tag = "v${version}";
hash = "sha256-H802VfEy3+bi6VB6z+FyMIFOazHh67mp3/9GuxcU/CU=";
};
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";
};
}