tuicam: init at 0.0.2 (#377825)
[NixPkgs.git] / pkgs / by-name / se / secretscanner / package.nix
blob356ecd9102f3c10b1a32f4b79bb01a2ca63ce20e
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   hyperscan,
6   pkg-config,
7   protobuf,
8   protoc-gen-go,
9   protoc-gen-go-grpc,
12 buildGoModule rec {
13   pname = "secretscanner";
14   version = "1.2.0";
16   src = fetchFromGitHub {
17     owner = "deepfence";
18     repo = "SecretScanner";
19     tag = "v${version}";
20     fetchSubmodules = true;
21     hash = "sha256-lTUZLuEiC9xpHYWn3uv4ZtbvHX6ETsjxacjd/O0kU8I=";
22   };
24   vendorHash = "sha256-lB+fiSdflIYGw0hMN0a9IOtRcJwYEUPQqaeU7mAfSQs=";
26   excludedPackages = [
27     "./agent-plugins-grpc/proto" # No need to build submodules
28   ];
30   nativeBuildInputs = [
31     pkg-config
32     protobuf
33     protoc-gen-go
34     protoc-gen-go-grpc
35   ];
37   buildInputs = [
38     hyperscan
39   ];
41   preBuild = ''
42     # Compile proto files
43     make -C agent-plugins-grpc go
44   '';
46   postInstall = ''
47     mv $out/bin/SecretScanner $out/bin/$pname
48   '';
50   meta = with lib; {
51     description = "Tool to find secrets and passwords in container images and file systems";
52     mainProgram = "secretscanner";
53     homepage = "https://github.com/deepfence/SecretScanner";
54     changelog = "https://github.com/deepfence/SecretScanner/releases/tag/v${version}";
55     platforms = [ "x86_64-linux" ];
56     license = with licenses; [ mit ];
57     maintainers = with maintainers; [ fab ];
58   };