tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
cpp-netlib: pin Boost to 1.86; LLVM to 18 on Darwin
Moraxyc
9 months ago
b8661fc4
eda65471
+47
-4
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
cp
cpp-netlib
0001-Compatibility-with-boost-1.83.patch
package.nix
+33
pkgs/by-name/cp/cpp-netlib/0001-Compatibility-with-boost-1.83.patch
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
From 8be99f5972826c25378bccb9fbd7291623c7b2a7 Mon Sep 17 00:00:00 2001
2
+
From: Moraxyc <i@qaq.li>
3
+
Date: Fri, 9 May 2025 13:39:17 +0800
4
+
Subject: [PATCH] Compatibility with boost 1.83
5
+
6
+
---
7
+
boost/network/protocol/http/server/impl/parsers.ipp | 3 ++-
8
+
1 file changed, 2 insertions(+), 1 deletion(-)
9
+
10
+
diff --git a/boost/network/protocol/http/server/impl/parsers.ipp b/boost/network/protocol/http/server/impl/parsers.ipp
11
+
index c31e60e..3272c2f 100755
12
+
--- a/boost/network/protocol/http/server/impl/parsers.ipp
13
+
+++ b/boost/network/protocol/http/server/impl/parsers.ipp
14
+
@@ -13,6 +13,7 @@
15
+
#include <tuple>
16
+
#include <boost/fusion/include/std_tuple.hpp>
17
+
#include <boost/network/protocol/http/message/header.hpp>
18
+
+#include <boost/regex/pending/unicode_iterator.hpp>
19
+
20
+
#ifdef BOOST_NETWORK_NO_LIB
21
+
#ifndef BOOST_NETWORK_INLINE
22
+
@@ -32,7 +33,7 @@ typedef std::basic_string<uint32_t> u32_string;
23
+
template <> // <typename Attrib, typename T, typename Enable>
24
+
struct assign_to_container_from_value<std::string, u32_string, void> {
25
+
static void call(u32_string const& val, std::string& attr) {
26
+
- u32_to_u8_iterator<u32_string::const_iterator> begin = val.begin(),
27
+
+ boost::u32_to_u8_iterator<u32_string::const_iterator> begin = val.begin(),
28
+
end = val.end();
29
+
for (; begin != end; ++begin) attr += *begin;
30
+
}
31
+
--
32
+
2.48.1
33
+
+14
-4
pkgs/by-name/cp/cpp-netlib/package.nix
···
3
stdenv,
4
fetchFromGitHub,
5
cmake,
6
-
boost181,
7
openssl,
0
8
}:
9
-
10
-
stdenv.mkDerivation rec {
0
0
0
11
pname = "cpp-netlib";
12
version = "0.13.0-final";
13
···
19
fetchSubmodules = true;
20
};
21
0
0
0
0
0
22
nativeBuildInputs = [ cmake ];
23
buildInputs = [
24
-
boost181
0
25
openssl
26
];
27
···
3
stdenv,
4
fetchFromGitHub,
5
cmake,
6
+
boost186,
7
openssl,
8
+
llvmPackages_18,
9
}:
10
+
let
11
+
# std::char_traits has been removed
12
+
stdenvForCppNetlib = if stdenv.hostPlatform.isDarwin then llvmPackages_18.stdenv else stdenv;
13
+
in
14
+
stdenvForCppNetlib.mkDerivation rec {
15
pname = "cpp-netlib";
16
version = "0.13.0-final";
17
···
23
fetchSubmodules = true;
24
};
25
26
+
patches = [
27
+
# 'u32_to_u8_iterator' was not declared
28
+
./0001-Compatibility-with-boost-1.83.patch
29
+
];
30
+
31
nativeBuildInputs = [ cmake ];
32
buildInputs = [
33
+
# io_service.hpp has been removed in boost 1.87+
34
+
boost186
35
openssl
36
];
37