2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2022-01-03 16:56:52 +00:00
|
|
|
, boost175
|
2021-12-06 16:07:01 +00:00
|
|
|
, 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}";
|
2022-01-03 16:56:52 +00:00
|
|
|
sha256 = "sha256-3hE/esOcS/ln94wZIRVCLjWgouEYnJJf3EvirNEGTeA=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config sphinx wafHook ];
|
|
|
|
buildInputs = [ libpcap ndn-cxx openssl ];
|
|
|
|
|
|
|
|
wafConfigureFlags = [
|
2022-01-03 16:56:52 +00:00
|
|
|
"--boost-includes=${boost175.dev}/include"
|
|
|
|
"--boost-libs=${boost175.out}/lib"
|
|
|
|
# "--with-tests"
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
doCheck = false;
|
2021-12-06 16:07:01 +00:00
|
|
|
checkPhase = ''
|
2022-01-03 16:56:52 +00:00
|
|
|
runHook preCheck
|
2021-12-06 16:07:01 +00:00
|
|
|
build/unit-tests
|
2022-01-03 16:56:52 +00:00
|
|
|
runHook postCheck
|
2021-12-06 16:07:01 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://named-data.net/";
|
2022-12-28 21:21:41 +00:00
|
|
|
description = "Named Data Networking (NDN) Essential Tools";
|
2021-12-06 16:07:01 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ bertof ];
|
|
|
|
};
|
|
|
|
}
|