2021-01-25 00:26:54 -08:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2018-11-02 21:38:41 -07:00
|
|
|
|
2020-06-14 04:13:55 -07:00
|
|
|
buildGoModule rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "gosec";
|
2021-03-04 08:33:50 -08:00
|
|
|
version = "2.7.0";
|
2018-11-02 21:38:41 -07:00
|
|
|
|
2020-06-14 04:13:55 -07:00
|
|
|
subPackages = [ "cmd/gosec" ];
|
2018-11-02 21:38:41 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "securego";
|
2020-06-14 04:13:55 -07:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-03-04 08:33:50 -08:00
|
|
|
sha256 = "sha256-U7+0wXnuIDlATpVRVknwaPxib36+iYvvYUVM6d7Xf6I=";
|
2018-11-02 21:38:41 -07:00
|
|
|
};
|
|
|
|
|
2021-03-04 08:33:50 -08:00
|
|
|
vendorSha256 = "sha256-nr1rx6GM+ETcfLreYT081xNzUz2exloogJ+gcwF2u2o=";
|
2018-11-02 21:38:41 -07:00
|
|
|
|
2020-08-03 17:26:27 -07:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-08-02 02:20:00 -07:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version} -X main.GitTag=${src.rev} -X main.BuildDate=unknown" ];
|
|
|
|
|
2021-01-23 04:26:19 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/securego/gosec";
|
2020-06-14 04:13:55 -07:00
|
|
|
description = "Golang security checker";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ kalbasit nilp0inter ];
|
2018-11-02 21:38:41 -07:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|
2020-06-14 04:13:55 -07:00
|
|
|
|