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