nixpkgs-suyu/pkgs/tools/security/gitjacker/default.nix

44 lines
1,015 B
Nix
Raw Normal View History

2021-01-20 23:22:31 +01:00
{ lib
, buildGoModule
, fetchFromGitHub
, git
, stdenv
}:
buildGoModule rec {
pname = "gitjacker";
2021-02-25 11:16:04 +01:00
version = "0.0.3";
2021-01-20 23:22:31 +01:00
src = fetchFromGitHub {
owner = "liamg";
repo = "gitjacker";
rev = "v${version}";
2021-02-25 11:16:04 +01:00
sha256 = "sha256-cMjjVjHGTVT33bknAo2DVH/qPSeazVIIw3RpXGDxF5E=";
2021-01-20 23:22:31 +01:00
};
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 ];
};
}