orca-slicer: Don't show update dialog by default (#378396)

* orca-slicer: Don't show update dialog by default

This pulls in https://github.com/SoftFever/OrcaSlicer/pull/7650 (which I wrote).

The idea is, for the binaries that orca-slicer distributes from its github page, it might make sense to remind about updates because the user wouldn't otherwise know they need to take action to install new versions. But when orca-slicer is run using nix, we can safely assume the user will update using nix and they don't need the nag dialog.

* Update pkgs/by-name/or/orca-slicer/package.nix

---------

Co-authored-by: Shelvacu <git@shelvacu.com>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

authored by shelvacu Shelvacu Sandro and committed by GitHub 274ea258 97cb30a6

+10
+10
pkgs/by-name/or/orca-slicer/package.nix
··· 3 lib, 4 binutils, 5 fetchFromGitHub, 6 cmake, 7 pkg-config, 8 wrapGAppsHook3, ··· 126 patches = [ 127 # Fix for webkitgtk linking 128 ./patches/0001-not-for-upstream-CMakeLists-Link-against-webkit2gtk-.patch 129 ./patches/dont-link-opencv-world-orca.patch 130 ]; 131 132 doCheck = true; ··· 186 "-DCMAKE_CXX_FLAGS=-DGL_SILENCE_DEPRECATION" 187 "-DCMAKE_EXE_LINKER_FLAGS=-Wl,--no-as-needed" 188 "-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath,${mesa.drivers}/lib -Wl,-rpath,${mesa.osmesa}/lib" 189 ]; 190 191 preFixup = ''
··· 3 lib, 4 binutils, 5 fetchFromGitHub, 6 + fetchpatch, 7 cmake, 8 pkg-config, 9 wrapGAppsHook3, ··· 127 patches = [ 128 # Fix for webkitgtk linking 129 ./patches/0001-not-for-upstream-CMakeLists-Link-against-webkit2gtk-.patch 130 + # Link opencv_core and opencv_imgproc instead of opencv_world 131 ./patches/dont-link-opencv-world-orca.patch 132 + # The changeset from https://github.com/SoftFever/OrcaSlicer/pull/7650, can be removed when that PR gets merged 133 + # Allows disabling the update nag screen 134 + (fetchpatch { 135 + name = "pr-7650-configurable-update-check.patch"; 136 + url = "https://github.com/SoftFever/OrcaSlicer/commit/d10a06ae11089cd1f63705e87f558e9392f7a167.patch"; 137 + hash = "sha256-t4own5AwPsLYBsGA15id5IH1ngM0NSuWdFsrxMRXmTk="; 138 + }) 139 ]; 140 141 doCheck = true; ··· 195 "-DCMAKE_CXX_FLAGS=-DGL_SILENCE_DEPRECATION" 196 "-DCMAKE_EXE_LINKER_FLAGS=-Wl,--no-as-needed" 197 "-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath,${mesa.drivers}/lib -Wl,-rpath,${mesa.osmesa}/lib" 198 + "-DORCA_VERSION_CHECK_DEFAULT=OFF" 199 ]; 200 201 preFixup = ''