gosec: add ldflags
This commit is contained in:
parent
ce039eb5c3
commit
209c9079ed
@ -17,6 +17,8 @@ buildGoModule rec {
|
|||||||
|
|
||||||
vendorSha256 = "063dpq1k5lykp18gshlgg098yvppicv3cz8gjn1mvfhac2rl9yqr";
|
vendorSha256 = "063dpq1k5lykp18gshlgg098yvppicv3cz8gjn1mvfhac2rl9yqr";
|
||||||
|
|
||||||
|
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version} -X main.GitTag=${src.rev} -X main.BuildDate=unknown" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://github.com/securego/gosec";
|
homepage = "https://github.com/securego/gosec";
|
||||||
description = "Golang security checker";
|
description = "Golang security checker";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user