3 , boost179 # probably needs to match the one from ndn-cxx
13 , withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
14 , withWebSocket ? true
17 stdenv.mkDerivation rec {
21 src = fetchFromGitHub {
23 repo = lib.toUpper pname;
24 rev = "NFD-${version}";
25 sha256 = "sha256-epY5qtET7rsKL3KIKvxfa+wF+AGZbYs+zRhy8SnIffk=";
26 fetchSubmodules = true;
29 nativeBuildInputs = [ pkg-config sphinx wafHook ];
30 buildInputs = [ libpcap ndn-cxx openssl websocketpp ] ++ lib.optional withSystemd systemd;
33 "--boost-includes=${boost179.dev}/include"
34 "--boost-libs=${boost179.out}/lib"
36 ] ++ lib.optional (!withWebSocket) "--without-websocket";
42 # build/unit-tests-daemon # 3 tests fail
44 build/unit-tests-tools
49 homepage = "https://named-data.net/";
50 description = "Named Data Networking (NDN) Forwarding Daemon";
51 license = licenses.gpl3Plus;
52 platforms = platforms.unix;
53 maintainers = with maintainers; [ bertof ];