2021-11-22 20:06:18 +01:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2017-08-22 15:14:37 +02:00
|
|
|
|
2021-11-22 20:06:18 +01:00
|
|
|
buildGoModule rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "scaleway-cli";
|
2021-11-22 20:06:18 +01:00
|
|
|
version = "2.4.0";
|
2017-08-22 15:14:37 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scaleway";
|
|
|
|
repo = "scaleway-cli";
|
|
|
|
rev = "v${version}";
|
2021-11-22 20:06:18 +01:00
|
|
|
sha256 = "yYzcziEKPSiMvw9LWd60MkHmYFAvN7Qza6Z117NOOv0=";
|
2017-08-22 15:14:37 +02:00
|
|
|
};
|
|
|
|
|
2022-01-31 21:48:55 +01:00
|
|
|
vendorSha256 = "7cGVeja1YE96PEV1IRklyh6MeMDFAP+2TpYvvFkBYnQ=";
|
2021-11-22 20:06:18 +01:00
|
|
|
|
|
|
|
# some tests require network access to scaleway's API, failing when sandboxed
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-08-22 15:14:37 +02:00
|
|
|
description = "Interact with Scaleway API from the command line";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/scaleway/scaleway-cli";
|
2017-08-22 15:14:37 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nickhu ];
|
|
|
|
};
|
|
|
|
}
|