1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoreconfHook,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "tnat64";
10 version = "0.06";
11
12 src = fetchFromGitHub {
13 owner = "andrewshadura";
14 repo = "tnat64";
15 rev = "tnat64-${version}";
16 sha256 = "191j1fpr3bw6fk48npl99z7iq6m1g33f15xk5cay1gnk5f46i2j6";
17 };
18
19 configureFlags = [ "--libdir=$(out)/lib" ];
20 nativeBuildInputs = [ autoreconfHook ];
21
22 meta = with lib; {
23 description = "IPv4 to IPv6 interceptor";
24 homepage = "https://github.com/andrewshadura/tnat64";
25 license = licenses.gpl2Plus;
26 longDescription = ''
27 TNAT64 is an interceptor which redirects outgoing TCPv4 connections
28 through NAT64, thus enabling an application running on an IPv6-only host
29 to communicate with the IPv4 world, even if that application does not
30 support IPv6 at all.
31 '';
32 platforms = platforms.unix;
33 badPlatforms = platforms.darwin;
34 maintainers = [ maintainers.rnhmjoj ];
35 };
36
37}