mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
cpp-netlib: remove insecure openssl dependency and unnecessary asio
Upstream openssl has dropped support for 1.0.2; see #77503 for details. This also cleans up the old `asio` dependency, which now comes from `boost`, and documents why the test driver fails.
This commit is contained in:
parent
23bdc67f8b
commit
3a22c75809
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, cmake, boost, openssl, asio }:
|
||||
{ stdenv, fetchFromGitHub, cmake, boost, openssl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cpp-netlib";
|
||||
@ -14,18 +14,22 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ cmake boost openssl ];
|
||||
|
||||
# This can be removed when updating to 0.13, see https://github.com/cpp-netlib/cpp-netlib/issues/629
|
||||
propagatedBuildInputs = [ asio ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DCPP-NETLIB_BUILD_SHARED_LIBS=ON"
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
# The test driver binary lacks an RPath to the library's libs
|
||||
preCheck = ''
|
||||
export LD_LIBRARY_PATH=$PWD/libs/network/src
|
||||
'';
|
||||
|
||||
# Most tests make network GET requests to various websites
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description =
|
||||
"Collection of open-source libraries for high level network programming";
|
||||
description = "Collection of open-source libraries for high level network programming";
|
||||
homepage = https://cpp-netlib.org;
|
||||
license = licenses.boost;
|
||||
platforms = platforms.all;
|
||||
|
@ -11065,9 +11065,8 @@ in
|
||||
|
||||
cpp-ipfs-api = callPackage ../development/libraries/cpp-ipfs-api { };
|
||||
|
||||
cpp-netlib = callPackage ../development/libraries/cpp-netlib {
|
||||
openssl = openssl_1_0_2;
|
||||
};
|
||||
cpp-netlib = callPackage ../development/libraries/cpp-netlib {};
|
||||
|
||||
uri = callPackage ../development/libraries/uri { };
|
||||
|
||||
cppcms = callPackage ../development/libraries/cppcms { };
|
||||
|
Loading…
Reference in New Issue
Block a user