nixpkgs/pkgs/tools/networking/iodine/default.nix
Eelco Dolstra 6609710409 * Get rid of many instances of "args: with args;", and other coding
guidelines violations.
* Updated libsamplerate to 0.1.7.

svn path=/nixpkgs/trunk/; revision=22782
2010-07-28 11:55:54 +00:00

22 lines
576 B
Nix

{ stdenv, fetchurl, zlib, nettools }:
stdenv.mkDerivation rec {
name = "iodine-0.4.1";
src = fetchurl {
url = "http://code.kryo.se/iodine/${name}.tar.gz";
sha256 = "1d0v6wbrciwd0xi9khrna956v5wy7wy1inllzrn187as358kiiv5";
};
buildInputs = [ zlib ];
patchPhase = ''sed -i "s,/sbin/ifconfig,${nettools}/sbin/ifconfig,; s,/sbin/route,${nettools}/sbin/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";
};
}