depot/third_party/nixpkgs/pkgs/by-name/pa/passdetective/package.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

35 lines
854 B
Nix

{ 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";
};
}