1 { lib, stdenv, fetchFromGitHub, nettools }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
8 sha256 = "sha256-r6IDs8Seys94LBNnedcfVX5aW8x//ZN0Yh/DGTg8niA=";
14 buildInputs = [ nettools ];
17 substituteInPlace src/tun.cpp --replace "/sbin/" "${nettools}/bin/"
20 enableParallelBuilding = true;
23 install -D -m0755 hans $out/bin/hans
27 description = "Tunnel IPv4 over ICMP";
29 Hans makes it possible to tunnel IPv4 through ICMP echo packets, so you
30 could call it a ping tunnel. This can be useful when you find yourself in
31 the situation that your Internet access is firewalled, but pings are
34 homepage = "https://code.gerade.org/hans/";
35 license = licenses.gpl3Plus;
36 platforms = platforms.linux;