1{ lib, stdenv, fetchFromGitHub, cmake, boost, openssl }:
2
3stdenv.mkDerivation rec {
4 pname = "cpp-netlib";
5 version = "0.13.0-final";
6
7 src = fetchFromGitHub {
8 owner = pname;
9 repo = pname;
10 rev = "${pname}-${version}";
11 sha256 = "18782sz7aggsl66b4mmi1i0ijwa76iww337fi9sygnplz2hs03a3";
12 fetchSubmodules = true;
13 };
14
15 nativeBuildInputs = [ cmake ];
16 buildInputs = [ boost openssl ];
17
18 cmakeFlags = [
19 "-DCPP-NETLIB_BUILD_SHARED_LIBS=ON"
20 ];
21
22 # The test driver binary lacks an RPath to the library's libs
23 preCheck = ''
24 export LD_LIBRARY_PATH=$PWD/libs/network/src
25 '';
26
27 # Most tests make network GET requests to various websites
28 doCheck = false;
29
30 meta = with lib; {
31 description = "Collection of open-source libraries for high level network programming";
32 homepage = "https://cpp-netlib.org";
33 license = licenses.boost;
34 platforms = platforms.all;
35 };
36}