3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/gosec/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
810 B
Nix
Raw Normal View History

2021-12-01 11:47:25 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
2018-11-03 04:38:41 +00:00
2020-06-14 12:13:55 +01:00
buildGoModule rec {
pname = "gosec";
2022-03-22 06:55:59 +00:00
version = "2.11.0";
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}";
2022-03-22 06:55:59 +00:00
sha256 = "sha256-AYD45L1FFT/S1toLK489C2TTasTHVXIs4Tf7TLOaye0=";
2018-11-03 04:38:41 +00:00
};
2022-03-22 06:55:59 +00:00
vendorSha256 = "sha256-zzbINVp8EA5aIvwUiFlQRtD6YL0iytbgVzCHbo+clYI=";
2021-12-01 11:47:25 +00:00
subPackages = [
"cmd/gosec"
];
2018-11-03 04:38:41 +00:00
doCheck = false;
2021-12-01 11:47:25 +00:00
ldflags = [
"-s"
"-w"
"-X main.Version=${version}"
"-X main.GitTag=${src.rev}"
"-X main.BuildDate=unknown"
];
2020-08-02 10:20:00 +01:00
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;
};
}