nixpkgs-suyu/pkgs/development/tools/gosec/default.nix

41 lines
809 B
Nix
Raw Normal View History

2021-12-01 12:47:25 +01:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
2018-11-03 05:38:41 +01:00
2020-06-14 13:13:55 +02:00
buildGoModule rec {
pname = "gosec";
2021-12-01 12:47:25 +01:00
version = "2.9.3";
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-12-01 12:47:25 +01:00
sha256 = "sha256-WjHNiFfa0YXuRq/FfWcamBwAVqRqLv9Qf+vy74rsCS4=";
2018-11-03 05:38:41 +01:00
};
2021-12-01 12:47:25 +01:00
vendorSha256 = "sha256-X2qxoq6bCQJH0B/jq670WWuTkDEurFI+Zx/5bcvXtVY=";
subPackages = [
"cmd/gosec"
];
2018-11-03 05:38:41 +01:00
doCheck = false;
2021-12-01 12:47:25 +01:00
ldflags = [
"-s"
"-w"
"-X main.Version=${version}"
"-X main.GitTag=${src.rev}"
"-X main.BuildDate=unknown"
];
2020-08-02 11:20:00 +02:00
meta = with lib; {
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;
};
}