anchor.diff:    nativeBuildInputs = [ autoreconfHook texinfo ];
     buildInputs = [ ncurses readline zlib lzo openssl ];
   
  +  # needed so the build doesn't need to run git to find out the version.
     prePatch = ''
       substituteInPlace configure.ac --replace UNKNOWN ${version}
  +    echo "${version}" > configure-version
  +    echo "https://tinc-vpn.org/git/browse?p=tinc;a=log;h=refs/tags/release-${version}" > ChangeLog
  +    sed -i '/AC_INIT/s/m4_esyscmd_s.*/${version})/' configure.ac
     '';
  -
  -  patches = [
  -    # Avoid infinite loop with "Error while reading from Linux tun/tap device (tun mode) /dev/net/tun: File descriptor in bad state" on network restart
  -    (fetchpatch {
  -      url = https://github.com/gsliepen/tinc/compare/acefa66...e4544db.patch;
  -      sha256 = "1jz7anqqzk7j96l5ifggc2knp14fmbsjdzfrbncxx0qhb6ihdcvn";
  -    })
  -  ];
   
     postInstall = ''
       rm $out/bin/tinc-gui
  
positive.code:     homepage="http://www.tinc-vpn.org/";
      license = licenses.gpl2Plus;
      platforms = platforms.unix;
      maintainers = with maintainers; [ wkennington fpletz ];
    };
  }
  
negative.code: 
  stdenv.mkDerivation rec {
    name = "tinc-${version}";
    version = "1.1pre15";
  
    src = fetchgit {
      rev = "refs/tags/release-${version}";
      url = "git://tinc-vpn.org/tinc";
      sha256 = "1msym63jpipvzb5dn8yn8yycrii43ncfq6xddxh2ifrakr48l6y5";
    };
  
    outputs = [ "out" "man" "info" ];
  