nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 38 lines 748 B view raw
1{ 2 lib, 3 python3, 4 fetchFromGitHub, 5}: 6 7python3.pkgs.buildPythonApplication rec { 8 pname = "dhcpig"; 9 version = "1.6"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "kamorin"; 14 repo = "DHCPig"; 15 tag = version; 16 hash = "sha256-MquLChDuJe3DdkxxKV4W0o49IIt7Am+yuhdOqUqexS8="; 17 }; 18 19 build-system = with python3.pkgs; [ 20 setuptools 21 ]; 22 23 dependencies = with python3.pkgs; [ 24 scapy 25 ]; 26 27 installPhase = '' 28 install -Dm755 pig.py $out/bin/dhcpig 29 ''; 30 31 meta = with lib; { 32 description = "Tool to perform advanced DHCP exhaustion attack"; 33 homepage = "https://github.com/kamorin/DHCPig"; 34 license = licenses.gpl2Plus; 35 maintainers = with maintainers; [ tochiaha ]; 36 mainProgram = "dhcpig"; 37 }; 38}