aliyun-cli: 3.0.211 -> 3.0.252 (#382384)
This commit is contained in:
@@ -2,21 +2,23 @@
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
writableTmpDirAsHomeHook,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "aliyun-cli";
|
||||
version = "3.0.211";
|
||||
version = "3.0.252";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
rev = "v${version}";
|
||||
owner = "aliyun";
|
||||
repo = pname;
|
||||
repo = "aliyun-cli";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-BNoNO8HQQGkUTR2MfpolF+PRo7YgT0hUbi5n+zPst6c=";
|
||||
fetchSubmodules = true;
|
||||
hash = "sha256-6msh6bGL++nXVzwwNW6fFZbkN40ieL+SpgRownIs9aE=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-wHdSDBxDArVbD5+EgGcIpQ+NLg5BKXo2v3WM4ni1efc=";
|
||||
vendorHash = "sha256-xwhq1UJ73Xxmt3NkpQMCrcl9N0F833N3/V+O+w1SVrQ=";
|
||||
|
||||
subPackages = [ "main" ];
|
||||
|
||||
@@ -26,16 +28,20 @@ buildGoModule rec {
|
||||
"-X github.com/aliyun/aliyun-cli/cli.Version=${version}"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ writableTmpDirAsHomeHook ];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/main $out/bin/aliyun
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
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/releases/tag/v${version}";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ ornxka ];
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ ornxka ];
|
||||
mainProgram = "aliyun";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user