2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, zlib, nettools, nixosTests }:
|
2010-07-28 11:55:54 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-01-28 12:00:00 +00:00
|
|
|
pname = "iodine";
|
|
|
|
version = "unstable-2019-09-27";
|
2010-07-28 11:55:54 +00:00
|
|
|
|
2020-01-28 12:00:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yarrick";
|
|
|
|
repo = "iodine";
|
|
|
|
rev = "8e14f18";
|
|
|
|
sha256 = "0k8m99qfjd5n6n56jnq85y7q8h2i2b8yw6ba0kxsz4jyx97lavg3";
|
2010-07-28 11:55:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
|
2015-09-06 18:08:59 +00:00
|
|
|
patchPhase = ''sed -i "s,/sbin/route,${nettools}/bin/route," src/tun.c'';
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-DIFCONFIGPATH=\"${nettools}/bin/\"";
|
2010-07-28 11:55:54 +00:00
|
|
|
|
2019-11-05 01:10:31 +00:00
|
|
|
installFlags = [ "prefix=\${out}" ];
|
2010-07-28 11:55:54 +00:00
|
|
|
|
2020-02-02 12:00:00 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) iodine;
|
|
|
|
};
|
|
|
|
|
2010-07-28 11:55:54 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://code.kryo.se/iodine/";
|
2010-07-28 11:55:54 +00:00
|
|
|
description = "Tool to tunnel IPv4 data through a DNS server";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.isc;
|
|
|
|
platforms = lib.platforms.unix;
|
2010-07-28 11:55:54 +00:00
|
|
|
};
|
|
|
|
}
|