about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/pa/passdetective/package.nix
blob: 2e921beb8c7d66643c0a862b7c12f97b74ad8c7d (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
30
31
32
33
34
35
{ lib
, buildGoModule
, fetchFromGitHub
}:

buildGoModule rec {
  pname = "passdetective";
  version = "1.0.7";

  src = fetchFromGitHub {
    owner = "aydinnyunus";
    repo = "PassDetective";
    rev = version;
    hash = "sha256-ln+nKESCYNQwTB6njNQBNUGmF+NXqgzmM1sb/d6ZBcU=";
  };

  vendorHash = "sha256-4FF0aQiuVN382RBCYI7SpoB8U8MZoXTomuFEvcbcREg=";

  ldflags = [
    "-s"
    "-w"
    "-extldflags"
    "-static"
    "-X=main.build=${version}"
  ];

  meta = with lib; {
    description = "Scans command history to detect mistakenly written passwords, API keys, and secrets";
    homepage = "https://github.com/aydinnyunus/PassDetective";
    changelog = "https://github.com/aydinnyunus/PassDetective/releases/tag/${version}";
    license = licenses.asl20;
    maintainers = with maintainers; [ octodi ];
    mainProgram = "PassDetective";
  };
}