gitleaks: add release output to --version

This commit is contained in:
Fabian Affolter 2021-03-02 08:37:24 +01:00
parent 14797ce13e
commit c978378760

View file

@ -16,6 +16,10 @@ buildGoModule rec {
vendorSha256 = "0kk8ci7vprqw4v7cigspshfd13k2wyy4pdkxf11pqc2fz8j07kh9";
preBuild = ''
buildFlagsArray+=("-ldflags" "-s -w -X github.com/zricethezav/gitleaks/v${lib.versions.major version}/version.Version=${version}")
'';
meta = with lib; {
description = "Scan git repos (or files) for secrets";
longDescription = ''