Skip to content

Commit

Permalink
benzene: fix build (NixOS#370958)
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst authored Jan 4, 2025
2 parents fe0daa1 + 6dd8909 commit a5fd99a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/by-name/be/benzene/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"'
Expand Down

0 comments on commit a5fd99a

Please sign in to comment.