1{ lib
2, buildGoModule
3, fetchFromGitHub
4, git
5, stdenv
6}:
7
8buildGoModule rec {
9 pname = "gitjacker";
10 version = "0.1.0";
11
12 src = fetchFromGitHub {
13 owner = "liamg";
14 repo = "gitjacker";
15 rev = "v${version}";
16 sha256 = "sha256-rEn9FpcRfEt2yGepIPEAO9m8JeVb+nMhYMBWhC/barc=";
17 };
18
19 vendorSha256 = null;
20
21 propagatedBuildInputs = [ git ];
22
23 nativeCheckInputs = [ git ];
24
25 doCheck = !stdenv.isDarwin;
26
27 preCheck = ''
28 export PATH=$TMPDIR/usr/bin:$PATH
29 '';
30
31 meta = with lib; {
32 description = "Leak git repositories from misconfigured websites";
33 longDescription = ''
34 Gitjacker downloads git repositories and extracts their contents
35 from sites where the .git directory has been mistakenly uploaded.
36 It will still manage to recover a significant portion of a repository
37 even where directory listings are disabled.
38 '';
39 homepage = "https://github.com/liamg/gitjacker";
40 license = with licenses; [ unlicense ];
41 maintainers = with maintainers; [ fab ];
42 };
43}