1{ stdenv, fetchurl, cmake, boost, openssl }: 2 3let 4 version = "0.11.0"; 5in 6 7stdenv.mkDerivation rec { 8 name = "cpp-netlib-${version}"; 9 10 src = fetchurl { 11 url = "http://commondatastorage.googleapis.com/cpp-netlib-downloads/${version}/${name}.tar.bz2"; 12 md5 = "0765cf203f451394df98e6ddf7bf2541"; 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 description = "A collection of open-source libraries for high level network programming"; 23 homepage = http://cpp-netlib.org; 24 license = licenses.boost; 25 platforms = platforms.all; 26 }; 27}