gosec: add ldflags

This commit is contained in:
Mario Rodas 2020-08-02 04:20:00 -05:00
parent ce039eb5c3
commit 209c9079ed
No known key found for this signature in database
GPG Key ID: 325649BCA6D53027

View File

@ -17,6 +17,8 @@ buildGoModule rec {
vendorSha256 = "063dpq1k5lykp18gshlgg098yvppicv3cz8gjn1mvfhac2rl9yqr";
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version} -X main.GitTag=${src.rev} -X main.BuildDate=unknown" ];
meta = with stdenv.lib; {
homepage = "https://github.com/securego/gosec";
description = "Golang security checker";