1{ lib, stdenv, fetchFromGitHub, libpcap, openssl, libnetfilter_queue, libnfnetlink }:
2stdenv.mkDerivation rec {
3 pname = "thc-ipv6";
4 version = "3.8";
5
6 src = fetchFromGitHub {
7 owner = "vanhauser-thc";
8 repo = pname;
9 rev = "v${version}";
10 sha256 = "07kwika1zdq62s5p5z94xznm77dxjxdg8k0hrg7wygz50151nzmx";
11 };
12
13 buildInputs = [
14 libpcap
15 openssl
16 libnetfilter_queue
17 libnfnetlink
18 ];
19
20 makeFlags = [
21 "PREFIX=$(out)"
22 ];
23
24 meta = with lib; {
25 description = "IPv6 attack toolkit";
26 homepage = "https://github.com/vanhauser-thc/thc-ipv6";
27 maintainers = with maintainers; [ ajs124 ];
28 platforms = platforms.linux;
29 license = licenses.agpl3Only;
30 };
31}