Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 54 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ lib, stdenv, fetchFromGitHub, cmake, boost186, openssl, llvmPackages_18,}:let # std::char_traits has been removed stdenvForCppNetlib = if stdenv.hostPlatform.isDarwin then llvmPackages_18.stdenv else stdenv;instdenvForCppNetlib.mkDerivation rec { pname = "cpp-netlib"; version = "0.13.0-final";
src = fetchFromGitHub { owner = "cpp-netlib"; repo = "cpp-netlib"; rev = "cpp-netlib-${version}"; sha256 = "18782sz7aggsl66b4mmi1i0ijwa76iww337fi9sygnplz2hs03a3"; fetchSubmodules = true; };
patches = [ # 'u32_to_u8_iterator' was not declared ./0001-Compatibility-with-boost-1.83.patch ];
nativeBuildInputs = [ cmake ]; buildInputs = [ # io_service.hpp has been removed in boost 1.87+ boost186 openssl ];
cmakeFlags = [ "-DCPP-NETLIB_BUILD_SHARED_LIBS=ON" # fatal error: 'boost/asio/stream_socket_service.hpp' file not found "-DCPP-NETLIB_BUILD_EXAMPLES=OFF" "-DCPP-NETLIB_BUILD_TESTS=OFF" ];
# Most tests make network GET requests to various websites doCheck = false;
meta = with lib; { description = "Collection of open-source libraries for high level network programming"; homepage = "https://cpp-netlib.org"; license = licenses.boost; platforms = platforms.all; };}