mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-17 18:34:38 +00:00
46 lines
971 B
Nix
46 lines
971 B
Nix
{
|
|
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";
|
|
};
|
|
}
|