diff --git a/pkgs/by-name/gi/gitleaks/package.nix b/pkgs/by-name/gi/gitleaks/package.nix index adfdf7a7eccc..063e64e2b333 100644 --- a/pkgs/by-name/gi/gitleaks/package.nix +++ b/pkgs/by-name/gi/gitleaks/package.nix @@ -5,8 +5,8 @@ fetchFromGitHub, gitleaks, installShellFiles, - testers, nix-update-script, + versionCheckHook, }: buildGoModule rec { @@ -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 { };