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

29 lines
707 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-06-14 12:13:55 +01:00
version = "2.3.0";
2018-11-03 04:38:41 +00:00
goPackagePath = "github.com/securego/gosec";
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}";
sha256 = "0z782rr4z0nhlj6cmjd17pbi65zabpmb83mv4y93wi4qa7kkpm2g";
2018-11-03 04:38:41 +00:00
};
2020-06-14 12:13:55 +01:00
vendorSha256 = "0zrmhqcid8xr6i1xxg3s8sll8a667w2vmn5asdw0b43k6k3h941p";
2018-11-03 04:38:41 +00:00
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