gitleaks: 8.21.2 -> 8.22.0 (#367066)

This commit is contained in:
Fabian Affolter
2024-12-22 09:37:10 +01:00
committed by GitHub
+9 -9
View File
@@ -5,22 +5,22 @@
fetchFromGitHub,
gitleaks,
installShellFiles,
testers,
nix-update-script,
versionCheckHook,
}:
buildGoModule rec {
pname = "gitleaks";
version = "8.21.2";
version = "8.22.0";
src = fetchFromGitHub {
owner = "zricethezav";
repo = "gitleaks";
rev = "refs/tags/v${version}";
hash = "sha256-1MCSGFpjYD4XdES+kJTz/NTN/B00TWMQ1Rmk/nsKf2Q=";
hash = "sha256-f3dSKYRkXt/YT5PgFS7pclRcKvfGl2sFopqfJkEwnhw=";
};
vendorHash = "sha256-iIgS0fXdiVMYKr3FZTYlCSEqqaH9sxZh1MFry9pGET8=";
vendorHash = "sha256-qjchUWWnG2CYXTM4aGkh+UgaJuPQ6yEpetXJ5ORqNuE=";
ldflags = [
"-s"
@@ -28,7 +28,10 @@ buildGoModule rec {
"-X=github.com/zricethezav/gitleaks/v${lib.versions.major version}/cmd.Version=${version}"
];
nativeBuildInputs = [ installShellFiles ];
nativeBuildInputs = [
installShellFiles
versionCheckHook
];
# With v8 the config tests are blocking
doCheck = false;
@@ -40,10 +43,7 @@ buildGoModule rec {
--zsh <($out/bin/${pname} completion zsh)
'';
passthru.tests.version = testers.testVersion {
package = gitleaks;
command = "${pname} version";
};
doInstallCheck = true;
passthru.updateScript = nix-update-script { };