summary refs log tree commit diff
path: root/pkgs/tools/networking
diff options
context:
space:
mode:
authorMalte Voos <malte@malvo.org>2021-07-11 10:20:59 +0200
committerMalte Voos <malte@malvo.org>2021-07-12 00:24:35 +0200
commit2e090199f60254009a5206e684f6b0aac5c43800 (patch)
tree9cc043e078ec8e7203e47aa4a77bd09e6da72560 /pkgs/tools/networking
parentf085e22dc2856873074ee5d0921d185a643279ff (diff)
downloadnixpkgs-2e090199f60254009a5206e684f6b0aac5c43800.tar
nixpkgs-2e090199f60254009a5206e684f6b0aac5c43800.tar.gz
nixpkgs-2e090199f60254009a5206e684f6b0aac5c43800.tar.bz2
nixpkgs-2e090199f60254009a5206e684f6b0aac5c43800.tar.lz
nixpkgs-2e090199f60254009a5206e684f6b0aac5c43800.tar.xz
nixpkgs-2e090199f60254009a5206e684f6b0aac5c43800.tar.zst
nixpkgs-2e090199f60254009a5206e684f6b0aac5c43800.zip
n2n: init at 2.8
Diffstat (limited to 'pkgs/tools/networking')
-rw-r--r--pkgs/tools/networking/n2n/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/networking/n2n/default.nix b/pkgs/tools/networking/n2n/default.nix
new file mode 100644
index 00000000000..aec4a1c5f53
--- /dev/null
+++ b/pkgs/tools/networking/n2n/default.nix
@@ -0,0 +1,32 @@
+{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config }:
+
+stdenv.mkDerivation rec {
+  pname = "n2n";
+  version = "2.8";
+
+  src = fetchFromGitHub {
+    owner = "ntop";
+    repo = "n2n";
+    rev = version;
+    hash = "sha256-2xJ8gYVZJZoKs6PZ/9GacgxQ+/3tmnRntT1AbPe1At4=";
+  };
+
+  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 ];
+  };
+}