about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/s3/s3scanner/package.nix
blob: ab660d3e54bb232f2de6a008143bbe168a29b504 (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
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "s3scanner";
  version = "3.0.4";

  src = fetchFromGitHub {
    owner = "sa7mon";
    repo = "s3scanner";
    rev = "v${version}";
    hash = "sha256-f1r5ubH7iLKuuEhs4MPNY779FjyASW1xOXtMtXvF/CY=";
  };

  ldflags = [ "-s -w" ];

  vendorHash = "sha256-3Y1izt6xLg7aNJNqIEXROxR3IGAIIeptHlnoYEcuLew=";

  # Requires networking
  doCheck = false;

  meta = with lib; {
    description = "Scan for misconfigured S3 buckets across S3-compatible APIs";
    downloadPage = "https://github.com/sa7mon/S3Scanner/releases/tag/v${version}";
    homepage = "https://github.com/sa7mon/s3scanner";
    license = licenses.mit;
    maintainers = with maintainers; [ lavafroth ];
    mainProgram = "s3scanner";
  };
}