Merge pull request #151381 from marsam/update-aliyun-cli

aliyun-cli: 3.0.100 -> 3.0.102
This commit is contained in:
Mario Rodas 2021-12-19 23:07:41 -05:00 committed by GitHub
commit d0b8eb67d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,28 +2,30 @@
buildGoModule rec { buildGoModule rec {
pname = "aliyun-cli"; pname = "aliyun-cli";
version = "3.0.100"; version = "3.0.102";
src = fetchFromGitHub { src = fetchFromGitHub {
rev = "v${version}"; rev = "v${version}";
owner = "aliyun"; owner = "aliyun";
repo = pname; repo = pname;
fetchSubmodules = true; fetchSubmodules = true;
sha256 = "sha256-gS+AN0H1/Xe9DQQfoCX7tAI5fHwEai4ONrAtpX9E6PE="; sha256 = "sha256-DUNWfwLA7if9NVUaUlwfW0i2CVcZyg2gIKmi1Nu485k=";
}; };
vendorSha256 = "sha256-c7LsCNcxdHwDBEknXJt9AyrmFcem8YtUYy06vNDBdDY="; vendorSha256 = "sha256-c7LsCNcxdHwDBEknXJt9AyrmFcem8YtUYy06vNDBdDY=";
subPackages = ["aliyun-openapi-meta" "main"]; subPackages = [ "main" ];
ldFlags = "-X 'github.com/aliyun/${pname}/cli.Version=${version}'"; ldFlags = [ "-s" "-w" "-X github.com/aliyun/aliyun-cli/cli.Version=${version}" ];
postInstall = '' postInstall = ''
mv $out/bin/main $out/bin/aliyun mv $out/bin/main $out/bin/aliyun
''; '';
meta = with lib; { meta = with lib; {
description = "Tool to manage and use Alibaba Cloud resources through a command line interface."; description = "Tool to manage and use Alibaba Cloud resources through a command line interface";
homepage = "https://github.com/aliyun/aliyun-cli"; homepage = "https://github.com/aliyun/aliyun-cli";
changelog = "https://github.com/aliyun/aliyun-cli/raw/v${version}/CHANGELOG.md";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ ornxka ]; maintainers = with maintainers; [ ornxka ];
}; };