summary refs log tree commit diff
path: root/pkgs/applications/misc/prusa-slicer/default.nix
diff options
context:
space:
mode:
authorAndré-Patrick Bubel <code@apb.name>2023-07-29 10:48:06 +0200
committerAndré-Patrick Bubel <code@apb.name>2023-07-29 12:37:19 +0200
commit30e93c9f3c045de3d28514aeba11fd84bbd6b460 (patch)
tree662d11d932e2798807c603505c47fc063cc28581 /pkgs/applications/misc/prusa-slicer/default.nix
parentb1a344f860b3e6a64919799068431eb4ce8d9d67 (diff)
downloadnixpkgs-30e93c9f3c045de3d28514aeba11fd84bbd6b460.tar
nixpkgs-30e93c9f3c045de3d28514aeba11fd84bbd6b460.tar.gz
nixpkgs-30e93c9f3c045de3d28514aeba11fd84bbd6b460.tar.bz2
nixpkgs-30e93c9f3c045de3d28514aeba11fd84bbd6b460.tar.lz
nixpkgs-30e93c9f3c045de3d28514aeba11fd84bbd6b460.tar.xz
nixpkgs-30e93c9f3c045de3d28514aeba11fd84bbd6b460.tar.zst
nixpkgs-30e93c9f3c045de3d28514aeba11fd84bbd6b460.zip
super-slicer: use patched wxGTK31 instead of wxGTK32
Fixes super-slicer segmentation fault on startup
Diffstat (limited to 'pkgs/applications/misc/prusa-slicer/default.nix')
-rw-r--r--pkgs/applications/misc/prusa-slicer/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/applications/misc/prusa-slicer/default.nix b/pkgs/applications/misc/prusa-slicer/default.nix
index 132e7edcc39..6b1f95d0bd0 100644
--- a/pkgs/applications/misc/prusa-slicer/default.nix
+++ b/pkgs/applications/misc/prusa-slicer/default.nix
@@ -35,6 +35,7 @@
 , xorg
 , fetchpatch
 , withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd, systemd
+, wxGTK-override ? null
 }:
 let
   wxGTK-prusa = wxGTK32.overrideAttrs (old: rec {
@@ -64,6 +65,7 @@ let
   openvdb_tbb_2021_8 = openvdb.overrideAttrs (old: rec {
     buildInputs = [ openexr boost tbb_2021_8 jemalloc c-blosc ilmbase ];
   });
+  wxGTK-override' = if wxGTK-override == null then wxGTK-prusa else wxGTK-override;
 in
 stdenv.mkDerivation rec {
   pname = "prusa-slicer";
@@ -99,7 +101,7 @@ stdenv.mkDerivation rec {
     pcre
     qhull
     tbb_2021_8
-    wxGTK-prusa
+    wxGTK-override'
     xorg.libX11
   ] ++ lib.optionals withSystemd [
     systemd