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
56
pkgs/applications/networking/cluster/driftctl/default.nix
Normal file
56
pkgs/applications/networking/cluster/driftctl/default.nix
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "driftctl";
|
||||
version = "0.31.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "snyk";
|
||||
repo = "driftctl";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-2h7tasHxeEe65BpUXmHkMsNmjiG+QofyGVqXPuk4Ej8=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-bsIPEjD/kCUvkRKP85CjW3JJf1Hyx9b2pMY9S4HlKrA=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X github.com/snyk/driftctl/pkg/version.version=v${version}"
|
||||
"-X github.com/snyk/driftctl/build.env=release"
|
||||
"-X github.com/snyk/driftctl/build.enableUsageReporting=false"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd driftctl \
|
||||
--bash <($out/bin/driftctl completion bash) \
|
||||
--fish <($out/bin/driftctl completion fish) \
|
||||
--zsh <($out/bin/driftctl completion zsh)
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
runHook preInstallCheck
|
||||
|
||||
$out/bin/driftctl --help
|
||||
$out/bin/driftctl version | grep "v${version}"
|
||||
# check there's no telemetry flag
|
||||
$out/bin/driftctl --help | grep -vz "telemetry"
|
||||
|
||||
runHook postInstallCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://driftctl.com/";
|
||||
changelog = "https://github.com/snyk/driftctl/releases/tag/v${version}";
|
||||
description = "Detect, track and alert on infrastructure drift";
|
||||
longDescription = ''
|
||||
driftctl is a free and open-source CLI that warns of infrastructure drift
|
||||
and fills in the missing piece in your DevSecOps toolbox.
|
||||
'';
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ kaction jk ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue