nixpkgs/pkgs/development/libraries/cpp-netlib/default.nix

31 lines
828 B
Nix
Raw Normal View History

{ stdenv, fetchurl, cmake, boost, openssl, asio }:
2014-05-17 15:32:56 +02:00
stdenv.mkDerivation rec {
name = "cpp-netlib-${version}";
2016-04-02 20:52:11 +02:00
version = "0.12.0";
2014-05-17 15:32:56 +02:00
src = fetchurl {
url = "http://downloads.cpp-netlib.org/${version}/${name}-final.tar.bz2";
2016-04-02 20:52:11 +02:00
sha256 = "0h7gyrbr3madycnj8rl8k1jzk2hd8np2k5ad9mijlh0fizzzk3h8";
2014-05-17 15:32:56 +02:00
};
2014-10-01 21:55:40 +02:00
buildInputs = [ cmake boost openssl ];
2014-05-17 15:32:56 +02:00
# This can be removed when updating to 0.13, see https://github.com/cpp-netlib/cpp-netlib/issues/629
propagatedBuildInputs = [ asio ];
2016-04-02 20:52:11 +02:00
cmakeFlags = [
"-DCPP-NETLIB_BUILD_SHARED_LIBS=ON"
];
2014-05-17 15:32:56 +02:00
enableParallelBuilding = true;
2014-09-19 19:56:08 +02:00
meta = with stdenv.lib; {
2016-04-02 20:52:11 +02:00
description =
"Collection of open-source libraries for high level network programming";
2018-06-23 13:34:55 +02:00
homepage = https://cpp-netlib.org;
2014-09-19 19:56:08 +02:00
license = licenses.boost;
platforms = platforms.all;
2014-05-17 15:32:56 +02:00
};
}