base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / gi / git-hound / package.nix
blob86efeef1c44453d7faf489f88501971238208bfd
1 { buildGoModule
2 , fetchFromGitHub
3 , fetchpatch
4 , lib
5 }:
7 buildGoModule rec {
8   pname = "git-hound";
9   version = "1.7.2";
11   src = fetchFromGitHub {
12     owner = "tillson";
13     repo = pname;
14     rev = "v${version}";
15     hash = "sha256-W+rYDyRIw4jWWO4UZkUHFq/D/7ZXM+y5vdbclk6S0ro=";
16   };
18   patches = [
19     # https://github.com/tillson/git-hound/pull/66
20     (fetchpatch {
21       url = "https://github.com/tillson/git-hound/commit/cd8aa19401cfdec9e4d76c1f6eb4d85928ec4b03.patch";
22       hash = "sha256-EkdR2KkxxlMLNtKFGpxsQ/msJT5NcMF7irIUcU2WWJY=";
23     })
24   ];
26   # tests fail outside of nix
27   doCheck = false;
29   vendorHash = "sha256-8teIa083oMXm0SjzMP+mGOVAel1Hbsp3TSMhdvqVbQs=";
31   meta = with lib; {
32     description = "Reconnaissance tool for GitHub code search";
33     longDescription = ''
34       GitHound pinpoints exposed API keys and other sensitive information
35       across all of GitHub using pattern matching, commit history searching,
36       and a unique result scoring system.
37     '';
38     homepage = "https://github.com/tillson/git-hound";
39     license = with licenses; [ mit ];
40     maintainers = with maintainers; [ fab ];
41     mainProgram = "git-hound";
42   };