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

30 lines
781 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2018-11-03 04:38:41 +00:00
2020-06-14 11:13:55 +00:00
buildGoModule rec {
pname = "gosec";
2021-10-15 21:56:30 +00:00
version = "2.9.1";
2018-11-03 04:38:41 +00:00
2020-06-14 11:13:55 +00:00
subPackages = [ "cmd/gosec" ];
2018-11-03 04:38:41 +00:00
src = fetchFromGitHub {
owner = "securego";
2020-06-14 11:13:55 +00:00
repo = pname;
rev = "v${version}";
2021-10-15 21:56:30 +00:00
sha256 = "0q9834siya19gj5ckymymyzkd1yn34b4xg5bvcgd7ckcpky143yw";
2018-11-03 04:38:41 +00:00
};
2021-10-15 21:56:30 +00:00
vendorSha256 = "1h0bbkp9g5nzzjm8qkaag54n9nl711ckkjwibb1gb9ciqwsad33l";
2018-11-03 04:38:41 +00:00
doCheck = false;
2021-08-26 06:45:51 +00:00
ldflags = [ "-s" "-w" "-X main.Version=${version}" "-X main.GitTag=${src.rev}" "-X main.BuildDate=unknown" ];
2020-08-02 09:20:00 +00:00
meta = with lib; {
homepage = "https://github.com/securego/gosec";
2020-06-14 11:13:55 +00: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;
};
}