about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/security/dnsenum/default.nix
blob: 826ebec015e4edfe486a5987365c6b21567eee77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib, stdenv, fetchFromGitHub, makeWrapper, perl, perlPackages }:

stdenv.mkDerivation rec {
  pname = "dnsenum";
  version = "1.2.4.2";

  src = fetchFromGitHub {
    owner = "fwaeytens";
    repo = pname;
    rev = version;
    sha256 = "1bg1ljv6klic13wq4r53bg6inhc74kqwm3w210865b1v1n8wj60v";
  };

  propagatedBuildInputs = with perlPackages; [
    perl NetDNS NetIP NetNetmask StringRandom XMLWriter NetWhoisIP WWWMechanize
  ];
  nativeBuildInputs = [ makeWrapper ];

  installPhase = ''
    install -vD dnsenum.pl $out/bin/dnsenum
    install -vD dns.txt -t $out/share
  '';

  meta = with lib; {
    homepage = "https://github.com/fwaeytens/dnsenum";
    description = "A tool to enumerate DNS information";
    mainProgram = "dnsenum";
    maintainers = with maintainers; [ c0bw3b ];
    license = licenses.gpl2Plus;
    platforms = platforms.all;
  };
}