nanoarrow: fix build with c++20

Co-Authored-By: Doron Behar <doron.behar@gmail.com>
This commit is contained in:
Lein Matsumaru
2026-07-15 14:05:02 +03:00
committed by Doron Behar
co-authored by Doron Behar
parent 10b334e395
commit d3c939d0fe
2 changed files with 19 additions and 0 deletions
@@ -0,0 +1,13 @@
diff --git i/meson.build w/meson.build
index 5c3032d..5ec2e56 100644
--- i/meson.build
+++ w/meson.build
@@ -22,7 +22,7 @@ project(
version: '0.8.0',
license: 'Apache-2.0',
meson_version: '>=0.58.0',
- default_options: ['c_std=c99', 'warning_level=2', 'cpp_std=c++17'],
+ default_options: ['c_std=c99', 'warning_level=2', 'cpp_std=c++20'],
)
cc = meson.get_compiler('c')
+6
View File
@@ -30,6 +30,12 @@ stdenv.mkDerivation (finalAttrs: {
tag = "apache-arrow-nanoarrow-${finalAttrs.version}";
hash = "sha256-1iLbT1eeyZaoB75uYTgg4qns+C7b4DErqMwJ9nQPRls=";
};
patches = [
# Fixes an issue between our `arrow-cpp` and this version of `nanoarrow`.
# Not applicable for upstreaming so it seems. See discussion:
# https://github.com/apache/arrow-nanoarrow/issues/902
./cpp20-arrow-cpp-fix.diff
];
nativeBuildInputs = [
meson