1 { lib, stdenv, fetchFromGitHub, autoreconfHook, texinfo, ncurses, readline, zlib, lzo, openssl, nixosTests }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
10 rev = "release-${version}";
11 hash = "sha256-1anjTUlVLx57FlUqGwBd590lfkZ2MmrM1qRcMl4P7Sg=";
14 outputs = [ "out" "man" "info" ];
16 nativeBuildInputs = [ autoreconfHook texinfo ];
17 buildInputs = [ ncurses readline zlib lzo openssl ];
19 # needed so the build doesn't need to run git to find out the version.
21 substituteInPlace configure.ac --replace UNKNOWN ${version}
22 echo "${version}" > configure-version
23 echo "https://tinc-vpn.org/git/browse?p=tinc;a=log;h=refs/tags/release-${version}" > ChangeLog
24 sed -i '/AC_INIT/s/m4_esyscmd_s.*/${version})/' configure.ac
29 "--localstatedir=/var"
32 passthru.tests = { inherit (nixosTests) tinc; };
35 description = "VPN daemon with full mesh routing";
37 tinc is a Virtual Private Network (VPN) daemon that uses tunnelling and
38 encryption to create a secure private network between hosts on the
39 Internet. It features full mesh routing, as well as encryption,
40 authentication, compression and ethernet bridging.
42 homepage="http://www.tinc-vpn.org/";
43 license = licenses.gpl2Plus;
44 platforms = platforms.unix;
45 maintainers = with maintainers; [ lassulus mic92 ];