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 {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gosec";
|
2020-08-01 10:02:19 +01:00
|
|
|
version = "2.4.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-08-01 10:02:19 +01:00
|
|
|
sha256 = "0mqijzr3vj4wycykqpjz9xw9fhpbnzz988z2q3nldb5ax0pyrxca";
|
2018-11-03 04:38:41 +00:00
|
|
|
};
|
|
|
|
|
2020-08-01 10:02:19 +01:00
|
|
|
vendorSha256 = "063dpq1k5lykp18gshlgg098yvppicv3cz8gjn1mvfhac2rl9yqr";
|
2018-11-03 04:38:41 +00:00
|
|
|
|
2020-08-04 01:26:27 +01: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; {
|
2020-04-01 02:11:51 +01:00
|
|
|
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
|
|
|
|