Skip to content

Commit

Permalink
gosec: add ldflags
Browse files Browse the repository at this point in the history
  • Loading branch information
marsam committed Aug 2, 2020
1 parent ce039eb commit 209c907
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/development/tools/gosec/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 209c907

Please sign in to comment.