2025-05-24 22:50:33 +00:00

38 lines
973 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
let
pname = "saucectl";
version = "0.195.2";
in
buildGoModule {
inherit pname version;
src = fetchFromGitHub {
owner = "saucelabs";
repo = "saucectl";
tag = "v${version}";
hash = "sha256-qBP2FXvx6E8f8/wwN+kVuN2f4QBfoG7ORGqmxlNYYtI=";
};
ldflags = [
"-X github.com/saucelabs/saucectl/internal/version.Version=${version}"
"-X github.com/saucelabs/saucectl/internal/version.GitCommit=${version}"
];
vendorHash = "sha256-zRmTAb4Y86bQHW8oEf3oJqYQv81k1PkvjWnGAy2ZOLM=";
checkFlags = [ "-skip=^TestNewRequestWithContext$" ];
meta = {
description = "Command line interface for the Sauce Labs platform";
changelog = "https://github.com/saucelabs/saucectl/releases/tag/v${version}";
homepage = "https://github.com/saucelabs/saucectl";
license = lib.licenses.apsl20;
maintainers = with lib.maintainers; [ luftmensch-luftmensch ];
mainProgram = "saucectl";
};
}