gitleaks: buildFlagsArray -> ldflags

This commit is contained in:
zowoq 2021-08-21 18:23:50 +10:00
parent 0a1ab79b9d
commit 6661458324

View File

@ -16,9 +16,9 @@ buildGoModule rec {
vendorSha256 = "sha256-Cc4DJPpOMHxDcH22S7znYo7QHNRXv8jOJhznu09kaE4=";
preBuild = ''
buildFlagsArray+=("-ldflags" "-s -w -X github.com/zricethezav/gitleaks/v${lib.versions.major version}/version.Version=${version}")
'';
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";