summary refs log tree commit diff
path: root/pkgs/development/tools/gosec/default.nix
blob: 2cffd86f3965a386470debe4dcc8b11a1f0b9fa0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ buildGoPackage
, lib
, fetchFromGitHub
}:

buildGoPackage rec {
  name = "gosec-${version}";
  version = "1.1.0";

  goPackagePath = "github.com/securego/gosec";
  excludedPackages = ''cmd/tlsconfig'';

  src = fetchFromGitHub {
    owner = "securego";
    repo = "gosec";
    rev = "${version}";
    sha256 = "0vjn3g6w4y4ayx0g766jp31vb78cipl90fcg0mccjr0a539qrpy6";
  };

  goDeps = ./deps.nix;

  meta = with lib; {
    description = "Golang security checker";
    homepage = https://github.com/securego/gosec;
    license = licenses.asl20 ;
    maintainers = with maintainers; [ kalbasit ];
    platforms = platforms.linux ++ platforms.darwin;
  };
}