Files

46 lines
1.1 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
git,
stdenv,
}:
buildGoModule (finalAttrs: {
pname = "gitjacker";
version = "0.1.0";
src = fetchFromGitHub {
owner = "liamg";
repo = "gitjacker";
rev = "v${finalAttrs.version}";
sha256 = "sha256-rEn9FpcRfEt2yGepIPEAO9m8JeVb+nMhYMBWhC/barc=";
};
vendorHash = null;
propagatedBuildInputs = [ git ];
nativeCheckInputs = [ git ];
doCheck = !stdenv.hostPlatform.isDarwin;
preCheck = ''
export PATH=$TMPDIR/usr/bin:$PATH
'';
meta = {
description = "Leak git repositories from misconfigured websites";
mainProgram = "gitjacker";
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 = lib.licenses.unlicense;
maintainers = with lib.maintainers; [ fab ];
};
})