1{ stdenv, fetchurl, cmake, boost, openssl, asio }:
2
3stdenv.mkDerivation rec {
4 name = "cpp-netlib-${version}";
5 version = "0.12.0";
6
7 src = fetchurl {
8 url = "http://downloads.cpp-netlib.org/${version}/${name}-final.tar.bz2";
9 sha256 = "0h7gyrbr3madycnj8rl8k1jzk2hd8np2k5ad9mijlh0fizzzk3h8";
10 };
11
12 buildInputs = [ cmake boost openssl ];
13
14 # This can be removed when updating to 0.13, see https://github.com/cpp-netlib/cpp-netlib/issues/629
15 propagatedBuildInputs = [ asio ];
16
17 cmakeFlags = [
18 "-DCPP-NETLIB_BUILD_SHARED_LIBS=ON"
19 ];
20
21 enableParallelBuilding = true;
22
23 meta = with stdenv.lib; {
24 description =
25 "Collection of open-source libraries for high level network programming";
26 homepage = http://cpp-netlib.org;
27 license = licenses.boost;
28 platforms = platforms.all;
29 maintainers = with maintainers; [ nckx ];
30 };
31}