1 { lib, buildGoModule, fetchFromGitHub }:
7 src = fetchFromGitHub {
11 fetchSubmodules = true;
12 sha256 = "sha256-popi+eF0nIA0C9QHbV4cu1vKfv9QUUq8oOJW/XkEabg=";
15 vendorSha256 = "sha256-rUYlFM9OlPXGzxXyOxweUs6md7HhjocC56F+OtT/IXo=";
17 subPackages = [ "main" ];
19 ldflags = [ "-s" "-w" "-X github.com/aliyun/aliyun-cli/cli.Version=${version}" ];
22 mv $out/bin/main $out/bin/aliyun
26 description = "Tool to manage and use Alibaba Cloud resources through a command line interface";
27 homepage = "https://github.com/aliyun/aliyun-cli";
28 changelog = "https://github.com/aliyun/aliyun-cli/releases/tag/v${version}";
29 license = licenses.asl20;
30 maintainers = with maintainers; [ ornxka ];
31 mainProgram = "aliyun";