roxctl: init at 3.69.1 (#168512)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
351e21b778
commit
5fdc74a2ac
44
pkgs/applications/networking/cluster/roxctl/default.nix
Normal file
44
pkgs/applications/networking/cluster/roxctl/default.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testVersion, roxctl }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "roxctl";
|
||||
version = "3.69.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "stackrox";
|
||||
repo = "stackrox";
|
||||
rev = version;
|
||||
sha256 = "sha256-fB43C+gMtUOg/Ah1fOTnOWOUmS0TjXkNCzw/TKfMzj4=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-M+ZueycJEaDVzC2bFwQc5EulCrdz6lvzyD8YCoGyW1g=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
subPackages = [ "roxctl" ];
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X github.com/stackrox/rox/pkg/version/internal.MainVersion=${version}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd roxctl \
|
||||
--bash <($out/bin/roxctl completion bash) \
|
||||
--fish <($out/bin/roxctl completion fish) \
|
||||
--zsh <($out/bin/roxctl completion zsh)
|
||||
'';
|
||||
|
||||
passthru.tests.version = testVersion {
|
||||
package = roxctl;
|
||||
command = "roxctl version";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Command-line client of the StackRox Kubernetes Security Platform";
|
||||
license = licenses.asl20;
|
||||
homepage = "https://www.stackrox.io";
|
||||
maintainers = with maintainers; [ stehessel ];
|
||||
};
|
||||
}
|
|
@ -28439,6 +28439,8 @@ with pkgs;
|
|||
|
||||
qemacs = callPackage ../applications/editors/qemacs { };
|
||||
|
||||
roxctl = callPackage ../applications/networking/cluster/roxctl { };
|
||||
|
||||
rqbit = callPackage ../applications/networking/p2p/rqbit {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue