3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/ndn-cxx/default.nix

51 lines
1.9 KiB
Nix
Raw Normal View History

2014-11-11 09:14:30 +00:00
{ stdenv, fetchgit, openssl, doxygen, boost, sqlite, cryptopp, pkgconfig, python, pythonPackages }:
let
version = "4c32e7";
in
stdenv.mkDerivation {
name = "ndn-cxx-0.1-${version}";
src = fetchgit {
url = "https://github.com/named-data/ndn-cxx.git";
rev = "4c32e748863d5165cc0e3d6b54a8383f4836cdf1";
sha256 = "18szs3j3ig8wlcqngran0daxaj7j2qsmch0212ids6fymj1hgax4";
2014-11-11 09:14:30 +00:00
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl doxygen boost sqlite cryptopp python pythonPackages.sphinx];
2014-11-11 09:14:30 +00:00
preConfigure = ''
patchShebangs waf
./waf configure \
--with-cryptopp=${cryptopp} \
--boost-includes=${boost.dev}/include \
--boost-libs=${boost.out}/lib \
2014-11-11 09:14:30 +00:00
--with-examples \
--prefix=$out
'';
buildPhase = ''
./waf
'';
installPhase = ''
./waf install
'';
meta = with stdenv.lib; {
homepage = http://named-data.net/;
2014-11-11 09:14:30 +00:00
description = "A Named Data Neworking (NDN) or Content Centric Networking (CCN) abstraction";
longDescription = ''
ndn-cxx is a C++ library, implementing Named Data Networking (NDN)
primitives that can be used to implement various NDN applications.
NDN operates by addressing and delivering Content Objects directly
by Name instead of merely addressing network end-points. In addition,
the NDN security model explicitly secures individual Content Objects
rather than securing the connection or pipe. Named and secured
content resides in distributed caches automatically populated on
demand or selectively pre-populated. When requested by name, NDN
delivers named content to the user from the nearest cache, thereby
traversing fewer network hops, eliminating redundant requests,
and consuming less resources overall.
'';
license = licenses.lgpl3;
platforms = stdenv.lib.platforms.unix;
maintainers = [ maintainers.sjmackenzie ];
2018-04-11 00:23:17 +01:00
broken = true; # 2018-04-11
2014-11-11 09:14:30 +00:00
};
}