mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
36 lines
905 B
Nix
36 lines
905 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
pname = "scaleway-cli";
|
|
version = "2.19.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scaleway";
|
|
repo = "scaleway-cli";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-DJTgmUH/n1TBKrgBN+8oG2ziRlAXzj6gOtjv4QjNkC8=";
|
|
};
|
|
|
|
vendorHash = "sha256-RnTj59WsyY/cWkhe2bucMvzrI8EwC3I1kxccBCfFqtI=";
|
|
|
|
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; {
|
|
description = "Interact with Scaleway API from the command line";
|
|
homepage = "https://github.com/scaleway/scaleway-cli";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ nickhu techknowlogick ];
|
|
};
|
|
}
|