about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/networking/dnschef/default.nix
blob: 2907a0f578e5ab05f70baa71e1808a63cbcdf969 (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
{ buildPythonApplication, fetchFromGitHub, dnslib, lib }:

buildPythonApplication rec {
  pname = "dnschef";
  version = "0.4";

  src = fetchFromGitHub {
    owner = "iphelix";
    repo = "dnschef";
    rev = "a395411ae1f5c262d0b80d06a45a445f696f3243";
    sha256 = "0ll3hw6w5zhzyqc2p3c9443gcp12sx6ddybg5rjpl01dh3svrk1q";
  };

  format = "other";
  installPhase = ''
    install -D ./dnschef.py $out/bin/dnschef
  '';

  propagatedBuildInputs = [ dnslib ];

  meta = with lib; {
    homepage = "https://github.com/iphelix/dnschef";
    description = "Highly configurable DNS proxy for penetration testers and malware analysts";
    mainProgram = "dnschef";
    license = licenses.bsd3;
    maintainers = [ maintainers.gfrascadorio ];
  };
}