mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
Merge pull request #280760 from octodi/passdetective
passdetective: init at 1.0.7
This commit is contained in:
commit
9e16b6a1ec
35
pkgs/by-name/pa/passdetective/package.nix
Normal file
35
pkgs/by-name/pa/passdetective/package.nix
Normal file
@ -0,0 +1,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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user