2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, git
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gitjacker";
|
2021-04-05 15:23:46 +00:00
|
|
|
version = "0.1.0";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "liamg";
|
|
|
|
repo = "gitjacker";
|
|
|
|
rev = "v${version}";
|
2021-04-05 15:23:46 +00:00
|
|
|
sha256 = "sha256-rEn9FpcRfEt2yGepIPEAO9m8JeVb+nMhYMBWhC/barc=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = null;
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ git ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ git ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
doCheck = !stdenv.hostPlatform.isDarwin;
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export PATH=$TMPDIR/usr/bin:$PATH
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Leak git repositories from misconfigured websites";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gitjacker";
|
2021-02-05 17:12:51 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|