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

View File

@ -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;