1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-21 05:25:38 +00:00
nixpkgs/pkgs/development/tools/gosec/default.nix

31 lines
801 B
Nix
Raw Normal View History

2020-06-14 12:13:55 +01:00
{ stdenv, buildGoModule, fetchFromGitHub }:
2018-11-03 04:38:41 +00:00
2020-06-14 12:13:55 +01:00
buildGoModule rec {
pname = "gosec";
2020-10-29 17:25:25 +00:00
version = "2.5.0";
2018-11-03 04:38:41 +00:00
2020-06-14 12:13:55 +01:00
subPackages = [ "cmd/gosec" ];
2018-11-03 04:38:41 +00:00
src = fetchFromGitHub {
owner = "securego";
2020-06-14 12:13:55 +01:00
repo = pname;
rev = "v${version}";
2020-10-29 17:25:25 +00:00
sha256 = "0hwa4sxw9sqzivg80nqsi9g1hz8apnnck73x5dvnn1zbwvycx3g9";
2018-11-03 04:38:41 +00:00
};
2020-10-29 17:25:25 +00:00
vendorSha256 = "1lldi56kah689xf8n1hfpk9qy0gbci62xnjs5jrh54kbgka23gvw";
2018-11-03 04:38:41 +00:00
doCheck = false;
2020-08-02 10:20:00 +01:00
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version} -X main.GitTag=${src.rev} -X main.BuildDate=unknown" ];
2020-06-14 12:13:55 +01:00
meta = with stdenv.lib; {
homepage = "https://github.com/securego/gosec";
2020-06-14 12:13:55 +01:00
description = "Golang security checker";
license = licenses.asl20;
maintainers = with maintainers; [ kalbasit nilp0inter ];
2018-11-03 04:38:41 +00:00
platforms = platforms.linux ++ platforms.darwin;
};
}
2020-06-14 12:13:55 +01:00