commit
915bbfacfa
|
@ -1,9 +1,10 @@
|
||||||
{ lib
|
{
|
||||||
, buildGoModule
|
lib,
|
||||||
, fetchFromGitHub
|
buildGoModule,
|
||||||
, gitleaks
|
fetchFromGitHub,
|
||||||
, installShellFiles
|
gitleaks,
|
||||||
, testers
|
installShellFiles,
|
||||||
|
testers,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
|
@ -12,8 +13,8 @@ buildGoModule rec {
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "zricethezav";
|
owner = "zricethezav";
|
||||||
repo = pname;
|
repo = "gitleaks";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-+UPlknAwmIeXlosHBXl3qPREV186lfDZGZG/Zx1rxYs=";
|
hash = "sha256-+UPlknAwmIeXlosHBXl3qPREV186lfDZGZG/Zx1rxYs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -22,12 +23,10 @@ buildGoModule rec {
|
||||||
ldflags = [
|
ldflags = [
|
||||||
"-s"
|
"-s"
|
||||||
"-w"
|
"-w"
|
||||||
"-X github.com/zricethezav/gitleaks/v${lib.versions.major version}/cmd.Version=${version}"
|
"-X=github.com/zricethezav/gitleaks/v${lib.versions.major version}/cmd.Version=${version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
installShellFiles
|
|
||||||
];
|
|
||||||
|
|
||||||
# With v8 the config tests are are blocking
|
# With v8 the config tests are are blocking
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user