{ lib, fetchFromGitHub, buildGoModule }: buildGoModule rec { pname = "scaleway-cli"; version = "2.18.0"; src = fetchFromGitHub { owner = "scaleway"; repo = "scaleway-cli"; rev = "v${version}"; sha256 = "sha256-ytnYrvvfO8L+TI1x0ydDBnh5lurWL1avCPVAlK/cOuI="; }; vendorHash = "sha256-UWWnT6ft/eGCn/6T1IDQSdfgv8htxDL2cFl4reAx51k="; 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 ]; }; }