super-slicer: handle missing postPatch

When overriding the postPatch attribute from prusa-slicer, handle the
scenario where prusa-slicer doesn't have a postPatch attribute, as well
as the scenario where it does.
This commit is contained in:
Adam Dinwoodie
2025-01-03 19:09:36 +00:00
parent 92d5a75032
commit 763f17cccd
@@ -59,7 +59,7 @@ let
# - wxScintilla is not used on macOS
# - Partially applied upstream changes cause a bug when trying to link against a nonexistent libexpat
postPatch =
super.postPatch
(super.postPatch or "")
+ ''
substituteInPlace src/CMakeLists.txt \
--replace "scintilla" "" \