From 763f17cccd37f0f5a3fb4a1dce73bf0201b47c0b Mon Sep 17 00:00:00 2001 From: Adam Dinwoodie Date: Sun, 22 Dec 2024 14:58:39 +0000 Subject: [PATCH] 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. --- pkgs/applications/misc/prusa-slicer/super-slicer.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/misc/prusa-slicer/super-slicer.nix b/pkgs/applications/misc/prusa-slicer/super-slicer.nix index 268e571b87d4..2d8e6ec35325 100644 --- a/pkgs/applications/misc/prusa-slicer/super-slicer.nix +++ b/pkgs/applications/misc/prusa-slicer/super-slicer.nix @@ -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" "" \