2019-08-03 10:17:01 -07:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, boost, openssl, asio }:
|
2014-05-17 06:32:56 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-03 10:17:01 -07:00
|
|
|
pname = "cpp-netlib";
|
|
|
|
version = "0.13.0-final";
|
2014-05-17 06:32:56 -07:00
|
|
|
|
2019-08-03 10:17:01 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
sha256 = "18782sz7aggsl66b4mmi1i0ijwa76iww337fi9sygnplz2hs03a3";
|
|
|
|
fetchSubmodules = true;
|
2014-05-17 06:32:56 -07:00
|
|
|
};
|
|
|
|
|
2014-10-01 12:55:40 -07:00
|
|
|
buildInputs = [ cmake boost openssl ];
|
2014-05-17 06:32:56 -07:00
|
|
|
|
2016-10-06 15:18:18 -07:00
|
|
|
# This can be removed when updating to 0.13, see https://github.com/cpp-netlib/cpp-netlib/issues/629
|
|
|
|
propagatedBuildInputs = [ asio ];
|
|
|
|
|
2016-04-02 11:52:11 -07:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DCPP-NETLIB_BUILD_SHARED_LIBS=ON"
|
|
|
|
];
|
2014-05-17 06:32:56 -07:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-09-19 10:56:08 -07:00
|
|
|
meta = with stdenv.lib; {
|
2016-04-02 11:52:11 -07:00
|
|
|
description =
|
|
|
|
"Collection of open-source libraries for high level network programming";
|
2018-06-23 04:34:55 -07:00
|
|
|
homepage = https://cpp-netlib.org;
|
2014-09-19 10:56:08 -07:00
|
|
|
license = licenses.boost;
|
|
|
|
platforms = platforms.all;
|
2014-05-17 06:32:56 -07:00
|
|
|
};
|
|
|
|
}
|