summary refs log tree commit diff
path: root/pkgs/tools/networking/iodine/default.nix
blob: f6be163bb839c6b0dc46917f22ce2efc4d2b85d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ stdenv, fetchurl, zlib, nettools }:

stdenv.mkDerivation rec {
  name = "iodine-0.6.0-rc1";

  src = fetchurl {
    url = "http://code.kryo.se/iodine/${name}.tar.gz";
    sha256 = "dacf950198b68fd1dae09fe980080155b0c75718f581c08e069eee0c1b6c5e60";
  };

  buildInputs = [ zlib ];

  patchPhase = ''sed -i "s,/sbin/ifconfig,${nettools}/bin/ifconfig,; s,/sbin/route,${nettools}/bin/route," src/tun.c'';

  installFlags = "prefix=\${out}";

  meta = {
    homepage = http://code.kryo.se/iodine/;
    description = "Tool to tunnel IPv4 data through a DNS server";
    license = "ISC";
  };
}