@@ -0,0 +1,48 @@
1+{ stdenv, fetchgit, openssl, doxygen, boost, sqlite, cryptopp, pkgconfig, python, pythonPackages }:
2+let
3+ version = "4c32e7";
4+in
5+stdenv.mkDerivation {
6+ name = "ndn-cxx-0.1-${version}";
7+ src = fetchgit {
8+ url = "https://github.com/named-data/ndn-cxx.git";
9+ rev = "4c32e748863d5165cc0e3d6b54a8383f4836cdf1";
10+ sha256 = "18s18inf14wmkfh1z6w087w7l3bqszd0nkhr09j73hqpz90b06hz";
11+ };
12+ buildInputs = [ openssl doxygen boost sqlite cryptopp pkgconfig python pythonPackages.sphinx];
13+ preConfigure = ''
14+ patchShebangs waf
15+ ./waf configure \
16+ --with-cryptopp=${cryptopp} \
17+ --boost-includes=${boost.dev}/include \
18+ --boost-libs=${boost.lib}/lib \
19+ --with-examples \
20+ --prefix=$out
21+ '';
22+ buildPhase = ''
23+ ./waf
24+ '';
25+ installPhase = ''
26+ ./waf install
27+ '';
28+ meta = with stdenv.lib; {
29+ homepage = "http://named-data.net/";
30+ description = "A Named Data Neworking (NDN) or Content Centric Networking (CCN) abstraction";
31+ longDescription = ''
32+ ndn-cxx is a C++ library, implementing Named Data Networking (NDN)
33+ primitives that can be used to implement various NDN applications.
34+ NDN operates by addressing and delivering Content Objects directly
35+ by Name instead of merely addressing network end-points. In addition,
36+ the NDN security model explicitly secures individual Content Objects
37+ rather than securing the connection or “pipe”. Named and secured
38+ content resides in distributed caches automatically populated on
39+ demand or selectively pre-populated. When requested by name, NDN
40+ delivers named content to the user from the nearest cache, thereby
41+ traversing fewer network hops, eliminating redundant requests,
42+ and consuming less resources overall.
43+ '';
44+ license = licenses.lgpl3;
45+ platforms = stdenv.lib.platforms.unix;
46+ maintainers = [ maintainers.sjmackenzie ];
47+ };
48+}