1{ stdenv, fetchurl, cmake, boost, openssl }:
2
3let
4 version = "0.11.2";
5in
6
7stdenv.mkDerivation rec {
8 name = "cpp-netlib-${version}";
9
10 src = fetchurl {
11 url = "http://downloads.cpp-netlib.org/${version}/${name}-final.tar.bz2";
12 sha256 = "0vwnp1jpvsdjaz7f7w55p7gw6hj7694nklmljcvphvkrhbw1g1q5";
13 };
14
15 buildInputs = [ cmake boost openssl ];
16
17 cmakeFlags = [ "-DCPP-NETLIB_BUILD_SHARED_LIBS=ON" "-DCMAKE_BUILD_TYPE=RELEASE" ];
18
19 enableParallelBuilding = true;
20
21 meta = with stdenv.lib; {
22 inherit version;
23 description = "A collection of open-source libraries for high level network programming";
24 homepage = http://cpp-netlib.org;
25 license = licenses.boost;
26 platforms = platforms.all;
27 maintainers = with maintainers; [ nckx ];
28 };
29}