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

29 lines
707 B
Nix
Raw Normal View History

2020-06-14 04:13:55 -07:00
{ stdenv, buildGoModule, fetchFromGitHub }:
2018-11-02 21:38:41 -07:00
2020-06-14 04:13:55 -07:00
buildGoModule rec {
pname = "gosec";
2020-08-01 02:02:19 -07:00
version = "2.4.0";
2018-11-02 21:38:41 -07:00
goPackagePath = "github.com/securego/gosec";
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}";
2020-08-01 02:02:19 -07:00
sha256 = "0mqijzr3vj4wycykqpjz9xw9fhpbnzz988z2q3nldb5ax0pyrxca";
2018-11-02 21:38:41 -07:00
};
2020-08-01 02:02:19 -07:00
vendorSha256 = "063dpq1k5lykp18gshlgg098yvppicv3cz8gjn1mvfhac2rl9yqr";
2018-11-02 21:38:41 -07:00
2020-06-14 04:13:55 -07:00
meta = with stdenv.lib; {
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