From 1d6c186817acd5829de1fb8779b64e500a097e2e Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sun, 19 Dec 2021 04:20:00 +0000 Subject: [PATCH] aliyun-cli: 3.0.100 -> 3.0.102 --- pkgs/tools/admin/aliyun-cli/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/admin/aliyun-cli/default.nix b/pkgs/tools/admin/aliyun-cli/default.nix index bc27688337fe..a42ba2e73bb3 100644 --- a/pkgs/tools/admin/aliyun-cli/default.nix +++ b/pkgs/tools/admin/aliyun-cli/default.nix @@ -2,28 +2,30 @@ buildGoModule rec { pname = "aliyun-cli"; - version = "3.0.100"; + version = "3.0.102"; src = fetchFromGitHub { rev = "v${version}"; owner = "aliyun"; repo = pname; fetchSubmodules = true; - sha256 = "sha256-gS+AN0H1/Xe9DQQfoCX7tAI5fHwEai4ONrAtpX9E6PE="; + sha256 = "sha256-DUNWfwLA7if9NVUaUlwfW0i2CVcZyg2gIKmi1Nu485k="; }; + 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 = '' mv $out/bin/main $out/bin/aliyun ''; 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"; + changelog = "https://github.com/aliyun/aliyun-cli/raw/v${version}/CHANGELOG.md"; license = licenses.asl20; maintainers = with maintainers; [ ornxka ]; };