nixpkgs/pkgs/tools/security/credential-detector/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
618 B
Nix
Raw Normal View History

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";
homepage = "https://github.com/ynori7/credential-detector";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}