gitleaks: refactor

This commit is contained in:
Fabian Affolter 2024-04-13 15:23:22 +02:00
parent f8e37ff586
commit 47fd8c7caf
1 changed files with 3 additions and 3 deletions

View File

@ -12,8 +12,8 @@ buildGoModule rec {
src = fetchFromGitHub {
owner = "zricethezav";
repo = pname;
rev = "v${version}";
repo = "gitleaks";
rev = "refs/tags/v${version}";
hash = "sha256-+UPlknAwmIeXlosHBXl3qPREV186lfDZGZG/Zx1rxYs=";
};
@ -22,7 +22,7 @@ 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 = [