Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 45 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 lzo, 6 openssl, 7 zlib, 8}: 9 10stdenv.mkDerivation rec { 11 version = "1.0.36"; 12 pname = "tinc"; 13 14 src = fetchurl { 15 url = "https://www.tinc-vpn.org/packages/tinc-${version}.tar.gz"; 16 sha256 = "021i2sl2mjscbm8g59d7vs74iw3gf0m48wg7w3zhwj6czarkpxs0"; 17 }; 18 19 buildInputs = [ 20 lzo 21 openssl 22 zlib 23 ]; 24 25 configureFlags = [ 26 "--localstatedir=/var" 27 "--sysconfdir=/etc" 28 ]; 29 30 #passthru.tests = { inherit (nixosTests) tinc; }; # test uses tinc_pre 31 32 meta = { 33 description = "VPN daemon with full mesh routing"; 34 longDescription = '' 35 tinc is a Virtual Private Network (VPN) daemon that uses tunnelling and 36 encryption to create a secure private network between hosts on the 37 Internet. It features full mesh routing, as well as encryption, 38 authentication, compression and ethernet bridging. 39 ''; 40 homepage = "http://www.tinc-vpn.org/"; 41 license = lib.licenses.gpl2Plus; 42 mainProgram = "tincd"; 43 platforms = lib.platforms.unix; 44 }; 45}