1 { lib, fetchFromGitHub, buildGoModule }:
4 pname = "scaleway-cli";
7 src = fetchFromGitHub {
11 sha256 = "sha256-Ynhom4WX1ME6/uI0HQ83S1DgLYN1HjUxKk5CUL/Fgzk=";
14 vendorHash = "sha256-FHvppbAAKW2Nf5GKhMWoMuOgqAp6deOSE61hg7dASqo=";
20 "-X main.Version=${version}"
21 "-X main.GitCommit=ref/tags/${version}"
22 "-X main.GitBranch=HEAD"
23 "-X main.BuildDate=unknown"
28 # Some tests require access to scaleway's API, failing when sandboxed
30 substituteInPlace core/bootstrap_test.go \
31 --replace-warn "TestInterruptError" "SkipInterruptError"
32 substituteInPlace internal/e2e/errors_test.go \
33 --replace-warn "TestStandardErrors" "SkipStandardErrors"
34 substituteInPlace internal/e2e/human_test.go \
35 --replace-warn "TestTestCommand" "SkipTestCommand" \
36 --replace-warn "TestHumanCreate" "SkipHumanCreate" \
37 --replace-warn "TestHumanList" "SkipHumanList" \
38 --replace-warn "TestHumanUpdate" "SkipHumanUpdate" \
39 --replace-warn "TestHumanGet" "SkipHumanGet" \
40 --replace-warn "TestHumanDelete" "SkipHumanDelete"
41 substituteInPlace internal/e2e/sdk_errors_test.go \
42 --replace-warn "TestSdkStandardErrors" "SkipSdkStandardErrors"
45 doInstallCheck = true;
47 installCheckPhase = ''
48 runHook preInstallCheck
52 runHook postInstallCheck
56 description = "Interact with Scaleway API from the command line";
57 homepage = "https://github.com/scaleway/scaleway-cli";
58 license = licenses.mit;
59 maintainers = with maintainers; [ nickhu techknowlogick kashw2 ];