From af182672407cd6f122562d803885756a37d68325 Mon Sep 17 00:00:00 2001 From: Samuel Rounce Date: Thu, 19 Dec 2024 21:21:19 +0000 Subject: [PATCH] super-slicer: fix STEP importer library not found --- pkgs/applications/misc/prusa-slicer/super-slicer.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/prusa-slicer/super-slicer.nix b/pkgs/applications/misc/prusa-slicer/super-slicer.nix index c33513356f3a0..268e571b87d4c 100644 --- a/pkgs/applications/misc/prusa-slicer/super-slicer.nix +++ b/pkgs/applications/misc/prusa-slicer/super-slicer.nix @@ -74,8 +74,14 @@ let --replace-fail 'auto &vi' 'auto vi' ''; - # We don't need PS overrides anymore, and gcode-viewer is embedded in the binary. - postInstall = null; + # We don't need PS overrides anymore, and gcode-viewer is embedded in the binary + # but we do still need to move OCCTWrapper.so to the lib directory + postInstall = '' + if [[ -f $out/bin/OCCTWrapper.so ]]; then + mkdir -p "$out/lib" + mv -v $out/bin/*.* $out/lib/ + fi + ''; separateDebugInfo = true; buildInputs = super.buildInputs ++ [