uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
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.70.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "stackrox";
|
||||
repo = "stackrox";
|
||||
rev = version;
|
||||
sha256 = "sha256-VnnMD2tRixCswO/9nrP3PgXmev6O8QUTbkwmFIpPUyE=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-xh2bgLSWjQHOjHrgDpQri78LvCL4CDbMteQYARyGLgg=";
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue