Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, makeWrapper, perl, perlPackages }: 2 3stdenv.mkDerivation rec { 4 pname = "dnsenum"; 5 version = "1.2.4.2"; 6 7 src = fetchFromGitHub { 8 owner = "fwaeytens"; 9 repo = pname; 10 rev = version; 11 sha256 = "1bg1ljv6klic13wq4r53bg6inhc74kqwm3w210865b1v1n8wj60v"; 12 }; 13 14 propagatedBuildInputs = with perlPackages; [ 15 perl NetDNS NetIP NetNetmask StringRandom XMLWriter NetWhoisIP WWWMechanize 16 ]; 17 nativeBuildInputs = [ makeWrapper ]; 18 19 installPhase = '' 20 install -vD dnsenum.pl $out/bin/dnsenum 21 install -vD dns.txt -t $out/share 22 ''; 23 24 meta = with lib; { 25 homepage = "https://github.com/fwaeytens/dnsenum"; 26 description = "A tool to enumerate DNS information"; 27 maintainers = with maintainers; [ c0bw3b ]; 28 license = licenses.gpl2Plus; 29 platforms = platforms.all; 30 }; 31}