Skip to content

Commit

Permalink
super-slicer: handle missing postPatch
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
me-and authored and mkg20001 committed Dec 22, 2024
1 parent 0a53a22 commit 06f2e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/applications/misc/prusa-slicer/super-slicer.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,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" "" \
Expand Down

0 comments on commit 06f2e26

Please sign in to comment.