2014-05-17 14:32:56 +01:00
|
|
|
{ stdenv, fetchurl, cmake, boost, openssl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cpp-netlib-${version}";
|
2016-01-25 19:08:34 +00:00
|
|
|
version = "0.11.2";
|
2014-05-17 14:32:56 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-09-04 23:08:46 +01:00
|
|
|
url = "http://downloads.cpp-netlib.org/${version}/${name}-final.tar.bz2";
|
|
|
|
sha256 = "0vwnp1jpvsdjaz7f7w55p7gw6hj7694nklmljcvphvkrhbw1g1q5";
|
2014-05-17 14:32:56 +01:00
|
|
|
};
|
|
|
|
|
2014-10-01 20:55:40 +01:00
|
|
|
buildInputs = [ cmake boost openssl ];
|
2014-05-17 14:32:56 +01:00
|
|
|
|
|
|
|
cmakeFlags = [ "-DCPP-NETLIB_BUILD_SHARED_LIBS=ON" "-DCMAKE_BUILD_TYPE=RELEASE" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-09-19 18:56:08 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-05-17 14:32:56 +01:00
|
|
|
description = "A collection of open-source libraries for high level network programming";
|
|
|
|
homepage = http://cpp-netlib.org;
|
2014-09-19 18:56:08 +01:00
|
|
|
license = licenses.boost;
|
|
|
|
platforms = platforms.all;
|
2015-09-04 23:08:46 +01:00
|
|
|
maintainers = with maintainers; [ nckx ];
|
2014-05-17 14:32:56 +01:00
|
|
|
};
|
|
|
|
}
|