@@ -0,0 +1,43 @@
1+{ lib
2+, buildGoModule
3+, fetchFromGitHub
4+, git
5+, stdenv
6+}:
7+
8+buildGoModule rec {
9+ pname = "gitjacker";
10+ version = "0.0.2";
11+
12+ src = fetchFromGitHub {
13+ owner = "liamg";
14+ repo = "gitjacker";
15+ rev = "v${version}";
16+ sha256 = "0fg95i2y8sj7dsvqj8mx0k5pps7d0h1i4a3lk85l8jjab4kxx8h9";
17+ };
18+
19+ vendorSha256 = null;
20+
21+ propagatedBuildInputs = [ git ];
22+
23+ checkInputs = [ 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+}