2021-09-03 20:01:11 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "credential-detector";
|
2023-06-29 04:00:55 +00:00
|
|
|
version = "1.14.3";
|
2021-09-03 20:01:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ynori7";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-06-29 04:00:55 +00:00
|
|
|
hash = "sha256-20ySTLpjTc1X0iJsbzbeLmWF0xYzzREGOqEWrB2X1GQ=";
|
2021-09-03 20:01:11 +00:00
|
|
|
};
|
|
|
|
|
2023-06-29 04:00:55 +00:00
|
|
|
vendorHash = "sha256-VWmfATUbfnI3eJbFTUp6MR1wGESuI15PHZWuon5M5rg=";
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
2021-09-03 20:01:11 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool to detect potentially hard-coded credentials";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "credential-detector";
|
2021-09-03 20:01:11 +00:00
|
|
|
homepage = "https://github.com/ynori7/credential-detector";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|