diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-20 23:22:31 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-20 23:22:31 +0100 |
commit | 44f39b8420bf8dd07ca37de12fbb14984294b5c0 (patch) | |
tree | f0bf1457fc9d12b8d0bee2329a7d8228ed3dc00c /pkgs/tools/security | |
parent | 1b750c41fc0cc7cef7992a150c05d11a15bd226a (diff) |
gitjacker: init at 0.0.2
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r-- | pkgs/tools/security/gitjacker/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/tools/security/gitjacker/default.nix b/pkgs/tools/security/gitjacker/default.nix new file mode 100644 index 000000000000..0b8c087eccd0 --- /dev/null +++ b/pkgs/tools/security/gitjacker/default.nix @@ -0,0 +1,43 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, git +, stdenv +}: + +buildGoModule rec { + pname = "gitjacker"; + version = "0.0.2"; + + src = fetchFromGitHub { + owner = "liamg"; + repo = "gitjacker"; + rev = "v${version}"; + sha256 = "0fg95i2y8sj7dsvqj8mx0k5pps7d0h1i4a3lk85l8jjab4kxx8h9"; + }; + + vendorSha256 = null; + + propagatedBuildInputs = [ git ]; + + checkInputs = [ git ]; + + doCheck = !stdenv.isDarwin; + + preCheck = '' + export PATH=$TMPDIR/usr/bin:$PATH + ''; + + meta = with lib; { + description = "Leak git repositories from misconfigured websites"; + longDescription = '' + Gitjacker downloads git repositories and extracts their contents + from sites where the .git directory has been mistakenly uploaded. + It will still manage to recover a significant portion of a repository + even where directory listings are disabled. + ''; + homepage = "https://github.com/liamg/gitjacker"; + license = with licenses; [ unlicense ]; + maintainers = with maintainers; [ fab ]; + }; +} |