Merge pull request #303838 from fabaff/gitleaks

gitleaks: refactor
This commit is contained in:
Fabian Affolter 2024-04-18 13:02:58 +02:00 committed by GitHub
commit 915bbfacfa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 12 deletions

View File

@ -1,9 +1,10 @@
{ lib
, buildGoModule
, fetchFromGitHub
, gitleaks
, installShellFiles
, testers
{
lib,
buildGoModule,
fetchFromGitHub,
gitleaks,
installShellFiles,
testers,
}:
buildGoModule rec {
@ -12,8 +13,8 @@ buildGoModule rec {
src = fetchFromGitHub {
owner = "zricethezav";
repo = pname;
rev = "v${version}";
repo = "gitleaks";
rev = "refs/tags/v${version}";
hash = "sha256-+UPlknAwmIeXlosHBXl3qPREV186lfDZGZG/Zx1rxYs=";
};
@ -22,12 +23,10 @@ buildGoModule rec {
ldflags = [
"-s"
"-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 = [
installShellFiles
];
nativeBuildInputs = [ installShellFiles ];
# With v8 the config tests are are blocking
doCheck = false;