nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 37 lines 973 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6let 7 pname = "saucectl"; 8 version = "0.196.0"; 9in 10buildGoModule { 11 inherit pname version; 12 13 src = fetchFromGitHub { 14 owner = "saucelabs"; 15 repo = "saucectl"; 16 tag = "v${version}"; 17 hash = "sha256-UqGz5pzhICHJ7zRHZYgtf44xUqd15FgtPuG1/6Nc0PQ="; 18 }; 19 20 ldflags = [ 21 "-X github.com/saucelabs/saucectl/internal/version.Version=${version}" 22 "-X github.com/saucelabs/saucectl/internal/version.GitCommit=${version}" 23 ]; 24 25 vendorHash = "sha256-zRmTAb4Y86bQHW8oEf3oJqYQv81k1PkvjWnGAy2ZOLM="; 26 27 checkFlags = [ "-skip=^TestNewRequestWithContext$" ]; 28 29 meta = { 30 description = "Command line interface for the Sauce Labs platform"; 31 changelog = "https://github.com/saucelabs/saucectl/releases/tag/v${version}"; 32 homepage = "https://github.com/saucelabs/saucectl"; 33 license = lib.licenses.apsl20; 34 maintainers = with lib.maintainers; [ luftmensch-luftmensch ]; 35 mainProgram = "saucectl"; 36 }; 37}