nixpkgs/pkgs/development/libraries/ndn-cxx/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.9 KiB
Nix
Raw Normal View History

{ lib
, stdenv
2020-10-31 17:02:42 +00:00
, fetchFromGitHub
, doxygen
, pkg-config
, python3
, python3Packages
, wafHook
2022-12-05 09:56:01 +00:00
, boost
2020-10-31 17:02:42 +00:00
, openssl
, sqlite
}:
stdenv.mkDerivation rec {
2019-08-13 21:52:01 +00:00
pname = "ndn-cxx";
2022-12-05 09:56:01 +00:00
version = "0.8.1";
2020-10-31 17:02:42 +00:00
src = fetchFromGitHub {
owner = "named-data";
repo = "ndn-cxx";
2020-10-31 17:02:42 +00:00
rev = "${pname}-${version}";
2022-12-05 09:56:01 +00:00
sha256 = "sha256-nnnxlkYVTSRB6ZcuIUDFol999+amGtqegHXK+06ITK8=";
2014-11-11 09:14:30 +00:00
};
2020-10-31 17:02:42 +00:00
nativeBuildInputs = [ doxygen pkg-config python3 python3Packages.sphinx wafHook ];
2022-12-05 09:56:01 +00:00
buildInputs = [ boost openssl sqlite ];
2020-10-31 17:02:42 +00:00
wafConfigureFlags = [
"--with-openssl=${openssl.dev}"
2022-12-05 09:56:01 +00:00
"--boost-includes=${boost.dev}/include"
"--boost-libs=${boost.out}/lib"
"--with-tests"
];
2020-10-31 17:02:42 +00:00
2022-12-05 09:57:40 +00:00
doCheck = false; # some tests fail in upstream, some fail because of the sandbox environment
checkPhase = ''
runHook preCheck
2022-12-05 09:57:40 +00:00
LD_PRELOAD=build/libndn-cxx.so build/unit-tests
runHook postCheck
'';
meta = with lib; {
homepage = "https://named-data.net/";
2022-12-18 00:39:44 +00:00
description = "A Named Data Networking (NDN) or Content Centric Networking (CCN) abstraction";
2014-11-11 09:14:30 +00:00
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;
2020-10-31 17:02:42 +00:00
platforms = platforms.unix;
maintainers = with maintainers; [ sjmackenzie bertof ];
2014-11-11 09:14:30 +00:00
};
}