Unverified Commit a5fd99af authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

benzene: fix build (#370958)

parents fe0daa16 6dd89090
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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"'