2021-07-11 09:20:59 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "n2n";
|
2022-01-27 17:25:18 +00:00
|
|
|
version = "3.0";
|
2021-07-11 09:20:59 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ntop";
|
|
|
|
repo = "n2n";
|
|
|
|
rev = version;
|
2022-01-27 17:25:18 +00:00
|
|
|
hash = "sha256-OXmcc6r+fTHs/tDNF3akSsynB/bVRKB6Fl5oYxmu+E0=";
|
2021-07-11 09:20:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs autogen.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
preAutoreconf = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
PREFIX = placeholder "out";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Peer-to-peer VPN";
|
|
|
|
homepage = "https://www.ntop.org/products/n2n/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ malvo ];
|
|
|
|
};
|
|
|
|
}
|