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

24 lines
635 B
Nix
Raw Normal View History

{ stdenv, fetchurl, zlib, nettools }:
stdenv.mkDerivation rec {
2015-02-09 06:41:20 +01:00
name = "iodine-0.7.0";
src = fetchurl {
url = "http://code.kryo.se/iodine/${name}.tar.gz";
2015-02-09 06:41:20 +01:00
sha256 = "0gh17kcxxi37k65zm4gqsvbk3aw7yphcs3c02pn1c4s2y6n40axd";
};
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 = stdenv.lib.licenses.isc;
2015-02-09 06:41:20 +01:00
platforms = stdenv.lib.platforms.unix;
};
}