Skip to content

Commit

Permalink
scaleway-cli: 1.20 -> 2.4.0
Browse files Browse the repository at this point in the history
Use buildGoModule instead of buildGoPackage because newer version is a module.
  • Loading branch information
capydara authored and cole-h committed Dec 4, 2021
1 parent 0d8cbc4 commit f01e912
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions pkgs/tools/admin/scaleway-cli/default.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
{ lib, fetchFromGitHub, buildGoPackage }:
{ lib, fetchFromGitHub, buildGoModule }:

buildGoPackage rec {
buildGoModule rec {
pname = "scaleway-cli";
version = "1.20";

goPackagePath = "github.com/scaleway/scaleway-cli";
version = "2.4.0";

src = fetchFromGitHub {
owner = "scaleway";
repo = "scaleway-cli";
rev = "v${version}";
sha256 = "14likzp3hl04nq9nmpmh9m5zqjyspy5cyk20dkh03c1nhkd4vcnx";
sha256 = "yYzcziEKPSiMvw9LWd60MkHmYFAvN7Qza6Z117NOOv0=";
};

vendorSha256 = "0V9sHi/E095txnfF8YFW5O7o0e1H3sdn3tw5LqB92tI=";

# 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";
Expand Down

0 comments on commit f01e912

Please sign in to comment.