nixpkgs/pkgs/tools/admin/scaleway-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
905 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule }:
2017-08-22 13:14:37 +00:00
buildGoModule rec {
pname = "scaleway-cli";
version = "2.11.1";
2017-08-22 13:14:37 +00:00
src = fetchFromGitHub {
owner = "scaleway";
repo = "scaleway-cli";
rev = "v${version}";
sha256 = "sha256-tE2r2d3dagMvfPq/2G61KMPZyz6YQG3jAD+MjQ3uYbg=";
2017-08-22 13:14:37 +00:00
};
vendorHash = "sha256-eqVAX6l7wsHqFjzwLiTSwryLHxl0aJqQOmjyGeM+1co=";
2022-04-18 04:15:02 +00:00
ldflags = [
"-w"
"-extldflags"
"-static"
"-X main.Version=${version}"
"-X main.GitCommit=ref/tags/${version}"
"-X main.GitBranch=HEAD"
"-X main.BuildDate=unknown"
];
# some tests require network access to scaleway's API, failing when sandboxed
doCheck = false;
meta = with lib; {
2017-08-22 13:14:37 +00:00
description = "Interact with Scaleway API from the command line";
homepage = "https://github.com/scaleway/scaleway-cli";
2017-08-22 13:14:37 +00:00
license = licenses.mit;
2022-10-22 03:21:53 +00:00
maintainers = with maintainers; [ nickhu techknowlogick ];
2017-08-22 13:14:37 +00:00
};
}