1 { lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, roxctl }:
7 src = fetchFromGitHub {
11 sha256 = "sha256-Da3KFGdhDSvdcMBbYmhgft7Sj+PPgUMsEoXAtx9Mhm8=";
14 vendorHash = "sha256-qDSi1Jk6erSCwPiLubdVlqOT6PQygMQghS8leieJ78s=";
16 nativeBuildInputs = [ installShellFiles ];
18 subPackages = [ "roxctl" ];
23 "-X github.com/stackrox/rox/pkg/version/internal.MainVersion=${version}"
27 installShellCompletion --cmd roxctl \
28 --bash <($out/bin/roxctl completion bash) \
29 --fish <($out/bin/roxctl completion fish) \
30 --zsh <($out/bin/roxctl completion zsh)
33 passthru.tests.version = testers.testVersion {
35 command = "roxctl version";
39 description = "Command-line client of the StackRox Kubernetes Security Platform";
40 mainProgram = "roxctl";
41 license = licenses.asl20;
42 homepage = "https://www.stackrox.io";
43 maintainers = with maintainers; [ stehessel ];