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

31 lines
789 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2018-11-03 04:38:41 +00:00
2020-06-14 12:13:55 +01:00
buildGoModule rec {
pname = "gosec";
2021-01-29 03:35:32 +00:00
version = "2.6.1";
2018-11-03 04:38:41 +00:00
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}";
2021-01-29 03:35:32 +00:00
sha256 = "sha256-KMXRYudnJab/X6FBG0lnG9hHVmbKwnrN1oqkSn6q3DU=";
2018-11-03 04:38:41 +00:00
};
2021-01-29 03:35:32 +00:00
vendorSha256 = "sha256-0yxGEUOame9yfeIErLESWY8kZtt7Q4vD3TU6Wl9Xa54=";
2018-11-03 04:38:41 +00:00
doCheck = false;
2020-08-02 10:20:00 +01:00
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version} -X main.GitTag=${src.rev} -X main.BuildDate=unknown" ];
meta = with 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