mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
44 lines
1021 B
Nix
44 lines
1021 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, git
|
|
, stdenv
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "gitjacker";
|
|
version = "0.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "liamg";
|
|
repo = "gitjacker";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-rEn9FpcRfEt2yGepIPEAO9m8JeVb+nMhYMBWhC/barc=";
|
|
};
|
|
|
|
vendorSha256 = null;
|
|
|
|
propagatedBuildInputs = [ git ];
|
|
|
|
nativeCheckInputs = [ 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 ];
|
|
};
|
|
}
|