diff --git a/pkgs/tools/security/gitleaks/default.nix b/pkgs/tools/security/gitleaks/default.nix index 1b6e69631c07..d5bca2f14f85 100644 --- a/pkgs/tools/security/gitleaks/default.nix +++ b/pkgs/tools/security/gitleaks/default.nix @@ -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;