Commit e1b8acf7 authored by Stefano De Vuono's avatar Stefano De Vuono
Browse files

change replace to replace-fail

parent e8598f84
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -88,11 +88,11 @@ clangStdenv.mkDerivation rec {

  postPatch = ''
    substituteInPlace src/xmagics/executable.cpp \
      --replace "getDataLayout" "getDataLayoutString"
      --replace-fail "getDataLayout" "getDataLayoutString"
    substituteInPlace src/xmagics/execution.cpp \
      --replace "simplisticCastAs" "castAs"
      --replace-fail "simplisticCastAs" "castAs"
    substituteInPlace src/xmime_internal.hpp \
      --replace "code.str()" "code.str().str()"
      --replace-fail "code.str()" "code.str().str()"
  '';

  dontStrip = debug;