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

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

38 lines
733 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 11:13:55 +00:00
buildGoModule rec {
pname = "gosec";
2023-10-10 05:09:57 +00:00
version = "2.18.0";
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}";
2023-10-10 05:09:57 +00:00
hash = "sha256-z+5MR4tiKa2vVJslFdAcVLxrR6aXoPxAHaqNgN2QlMc=";
2018-11-03 04:38:41 +00:00
};
2023-10-10 05:09:57 +00:00
vendorHash = "sha256-jekw3uc2ZEH9s+26jMFVteHUD0iyURlVq8zBlVPihqs=";
2021-12-01 11:47:25 +00:00
subPackages = [
"cmd/gosec"
];
2018-11-03 04:38:41 +00:00
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 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
};
}