1{ stdenv, fetchurl, cmake, boost, openssl }: 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 cmakeFlags = [ 15 "-DCPP-NETLIB_BUILD_SHARED_LIBS=ON" 16 "-DCMAKE_BUILD_TYPE=RELEASE" 17 ]; 18 19 enableParallelBuilding = true; 20 21 meta = with stdenv.lib; { 22 description = 23 "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}