Skip to content

Commit

Permalink
passdetective: init at 1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
octodi committed Jan 13, 2024
1 parent 0ee435c commit fb74449
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pkgs/by-name/pa/passdetective/package.nix
Original file line number Diff line number Diff line change
@@ -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";
};
}

0 comments on commit fb74449

Please sign in to comment.