about summary refs log tree commit diff
path: root/pkgs/tools/networking/ndn-tools
diff options
context:
space:
mode:
authorFilippo Berto <berto.f@protonmail.com>2021-11-09 23:36:34 +0100
committerGitHub <noreply@github.com>2021-11-09 23:36:34 +0100
commit1fbe5a691270716797d72298d7da67ee2a9b1cac (patch)
tree6dcbef02b267762d829ac2273ae41e7ab7e3e9f1 /pkgs/tools/networking/ndn-tools
parentc159324bf858c47af3f3ff8fddaa4a4921471d81 (diff)
ndn-tools: init at 0.7.1 (#144012)
Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/tools/networking/ndn-tools')
-rw-r--r--pkgs/tools/networking/ndn-tools/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/tools/networking/ndn-tools/default.nix b/pkgs/tools/networking/ndn-tools/default.nix
new file mode 100644
index 0000000000000..83a8182b42751
--- /dev/null
+++ b/pkgs/tools/networking/ndn-tools/default.nix
@@ -0,0 +1,45 @@
+{ lib
+, stdenv
+, boost
+, fetchFromGitHub
+, libpcap
+, ndn-cxx
+, openssl
+, pkg-config
+, sphinx
+, wafHook
+}:
+
+stdenv.mkDerivation rec {
+  pname = "ndn-tools";
+  version = "0.7.1";
+
+  src = fetchFromGitHub {
+    owner = "named-data";
+    repo = pname;
+    rev = "ndn-tools-${version}";
+    sha256 = "1q2d0v8srqjbvigr570qw6ia0d9f88aj26ccyxkzjjwwqdx3y4fy";
+  };
+
+  nativeBuildInputs = [ pkg-config sphinx wafHook ];
+  buildInputs = [ libpcap ndn-cxx openssl ];
+
+  wafConfigureFlags = [
+    "--boost-includes=${boost.dev}/include"
+    "--boost-libs=${boost.out}/lib"
+    "--with-tests"
+  ];
+
+  doCheck = true;
+  checkPhase = ''
+    build/unit-tests
+  '';
+
+  meta = with lib; {
+    homepage = "https://named-data.net/";
+    description = "Named Data Neworking (NDN) Essential Tools";
+    license = licenses.gpl3Plus;
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ bertof ];
+  };
+}