567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
34 lines
746 B
Nix
34 lines
746 B
Nix
{
|
|
buildPythonApplication,
|
|
fetchFromGitHub,
|
|
dnslib,
|
|
lib,
|
|
}:
|
|
|
|
buildPythonApplication {
|
|
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 = {
|
|
homepage = "https://github.com/iphelix/dnschef";
|
|
description = "Highly configurable DNS proxy for penetration testers and malware analysts";
|
|
mainProgram = "dnschef";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [ lib.maintainers.gfrascadorio ];
|
|
};
|
|
}
|