nixpkgs/pkgs/tools/security/theharvester/default.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

2019-05-19 18:50:11 +02:00
{ stdenv, fetchFromGitHub, makeWrapper, python3Packages }:
2018-02-09 10:00:15 +01:00
stdenv.mkDerivation rec {
pname = "theHarvester";
2019-05-19 18:50:11 +02:00
version = "3.0.6";
2018-02-09 10:00:15 +01:00
src = fetchFromGitHub {
owner = "laramies";
2019-05-19 18:50:11 +02:00
repo = pname;
rev = version;
sha256 = "0f33a7sfb5ih21yp1wspb03fxsls1m14yizgrw0srfirm2a6aa0c";
2018-02-09 10:00:15 +01:00
};
nativeBuildInputs = [ makeWrapper ];
# add dependencies
2019-05-19 18:50:11 +02:00
propagatedBuildInputs = with python3Packages; [ requests beautifulsoup4 plotly ];
2018-02-09 10:00:15 +01:00
installPhase = ''
# create dirs
mkdir -p $out/share/${pname} $out/bin
# move project code
mv * $out/share/${pname}/
# make project runnable
chmod +x $out/share/${pname}/theHarvester.py
ln -s $out/share/${pname}/theHarvester.py $out/bin
wrapProgram "$out/bin/theHarvester.py" --prefix PYTHONPATH : $out/share/${pname}:$PYTHONPATH
'';
meta = with stdenv.lib; {
description = "Gather E-mails, subdomains and names from different public sources";
homepage = "https://github.com/laramies/theHarvester";
platforms = platforms.all;
maintainers = with maintainers; [ treemo ];
license = licenses.gpl2;
};
}