benzene: fix build (#370958)

This commit is contained in:
Arne Keller
2025-01-04 23:44:36 +01:00
committed by GitHub
+6
View File
@@ -24,6 +24,12 @@ stdenv.mkDerivation {
];
postPatch = ''
# Fixes for boost v1.85.0+
# https://github.com/cgao3/benzene-vanilla-cmake/issues/18
substituteInPlace src/util/Misc.cpp \
--replace-fail '.branch_path()' '.parent_path()' \
--replace-fail '.normalize()' '.lexically_normal()'
substituteInPlace CMakeLists.txt \
--replace-fail '-DABS_TOP_SRCDIR="''${top_srcdir}"' '-DABS_TOP_SRCDIR="$ENV{out}"' \
--replace-fail '-DDATADIR="''${pkgdatadir}"' '-DDATADIR="$ENV{out}/share"'