1{ lib
2, buildGoModule
3, fetchFromGitHub
4}:
5
6buildGoModule rec {
7 pname = "shhgit";
8 version = "0.4-${lib.strings.substring 0 7 rev}";
9 rev = "7e55062d10d024f374882817692aa2afea02ff84";
10
11 src = fetchFromGitHub {
12 owner = "eth0izzle";
13 repo = pname;
14 inherit rev;
15 sha256 = "1b7r4ivfplm4crlvx571nyz2rc6djy0xvl14nz7m0ngh6206df9k";
16 };
17
18 vendorSha256 = null; #vendorSha256 = "";
19
20 meta = with lib; {
21 description = "Tool to detect secrets in repositories";
22 homepage = "https://github.com/eth0izzle/shhgit";
23 license = with licenses; [ mit ];
24 maintainers = with maintainers; [ fab ];
25 broken = true; # vendor isn't reproducible with go > 1.17: nix-build -A $name.go-modules --check
26 };
27}