2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, boost, openssl }:
|
2014-05-17 14:32:56 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-03 18:17:01 +01:00
|
|
|
pname = "cpp-netlib";
|
|
|
|
version = "0.13.0-final";
|
2014-05-17 14:32:56 +01:00
|
|
|
|
2019-08-03 18:17:01 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
sha256 = "18782sz7aggsl66b4mmi1i0ijwa76iww337fi9sygnplz2hs03a3";
|
|
|
|
fetchSubmodules = true;
|
2014-05-17 14:32:56 +01:00
|
|
|
};
|
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ boost openssl ];
|
2014-05-17 14:32:56 +01:00
|
|
|
|
2016-04-02 19:52:11 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DCPP-NETLIB_BUILD_SHARED_LIBS=ON"
|
|
|
|
];
|
2014-05-17 14:32:56 +01:00
|
|
|
|
2020-01-12 16:44:22 +00:00
|
|
|
# The test driver binary lacks an RPath to the library's libs
|
|
|
|
preCheck = ''
|
|
|
|
export LD_LIBRARY_PATH=$PWD/libs/network/src
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Most tests make network GET requests to various websites
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-01-12 16:44:22 +00:00
|
|
|
description = "Collection of open-source libraries for high level network programming";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://cpp-netlib.org";
|
2014-09-19 18:56:08 +01:00
|
|
|
license = licenses.boost;
|
|
|
|
platforms = platforms.all;
|
2014-05-17 14:32:56 +01:00
|
|
|
};
|
|
|
|
}
|