2010-07-28 12:55:54 +01:00
|
|
|
{ stdenv, fetchurl, zlib, nettools }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-02-09 05:41:20 +00:00
|
|
|
name = "iodine-0.7.0";
|
2010-07-28 12:55:54 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://code.kryo.se/iodine/${name}.tar.gz";
|
2015-02-09 05:41:20 +00:00
|
|
|
sha256 = "0gh17kcxxi37k65zm4gqsvbk3aw7yphcs3c02pn1c4s2y6n40axd";
|
2010-07-28 12:55:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
|
2015-09-06 19:08:59 +01:00
|
|
|
patchPhase = ''sed -i "s,/sbin/route,${nettools}/bin/route," src/tun.c'';
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-DIFCONFIGPATH=\"${nettools}/bin/\"";
|
2010-07-28 12:55:54 +01:00
|
|
|
|
2019-11-05 01:10:31 +00:00
|
|
|
installFlags = [ "prefix=\${out}" ];
|
2010-07-28 12:55:54 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://code.kryo.se/iodine/;
|
|
|
|
description = "Tool to tunnel IPv4 data through a DNS server";
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.isc;
|
2015-02-09 05:41:20 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2010-07-28 12:55:54 +01:00
|
|
|
};
|
|
|
|
}
|