2024-09-19 14:19:46 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, texinfo, ncurses, readline, zlib, lzo, openssl, nixosTests }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tinc";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "1.1pre18";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gsliepen";
|
|
|
|
repo = "tinc";
|
2021-06-28 23:13:55 +00:00
|
|
|
rev = "release-${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-1anjTUlVLx57FlUqGwBd590lfkZ2MmrM1qRcMl4P7Sg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "man" "info" ];
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) tinc; };
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "VPN daemon with full mesh routing";
|
|
|
|
longDescription = ''
|
|
|
|
tinc is a Virtual Private Network (VPN) daemon that uses tunnelling and
|
|
|
|
encryption to create a secure private network between hosts on the
|
|
|
|
Internet. It features full mesh routing, as well as encryption,
|
|
|
|
authentication, compression and ethernet bridging.
|
|
|
|
'';
|
|
|
|
homepage="http://www.tinc-vpn.org/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ lassulus mic92 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|