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 3 lib, 4 4 binutils, 5 5 fetchFromGitHub, 6 + fetchpatch, 6 7 cmake, 7 8 pkg-config, 8 9 wrapGAppsHook3, ··· 126 127 patches = [ 127 128 # Fix for webkitgtk linking 128 129 ./patches/0001-not-for-upstream-CMakeLists-Link-against-webkit2gtk-.patch 130 + # Link opencv_core and opencv_imgproc instead of opencv_world 129 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 + }) 130 139 ]; 131 140 132 141 doCheck = true; ··· 186 195 "-DCMAKE_CXX_FLAGS=-DGL_SILENCE_DEPRECATION" 187 196 "-DCMAKE_EXE_LINKER_FLAGS=-Wl,--no-as-needed" 188 197 "-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath,${mesa.drivers}/lib -Wl,-rpath,${mesa.osmesa}/lib" 198 + "-DORCA_VERSION_CHECK_DEFAULT=OFF" 189 199 ]; 190 200 191 201 preFixup = ''