nixpkgs-suyu/pkgs/tools/networking/iodine/default.nix

33 lines
786 B
Nix
Raw Normal View History

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