texstudio: disable auto update

Disable auto update by applying the patch from Debian. From its
description:

> This patch sets the auto update configuration value to false by
> default and disables the update checkbox, the corresponding time
> interval, the "Check Now" button and the update level.

The program ignores any auto update settings already present in the
config, so this patch works as expected even if Texstudio was already
installed.
This commit is contained in:
Nova Hahn
2026-02-16 00:20:47 +01:00
parent 2e03ab6f39
commit f3343f7518
+9
View File
@@ -2,6 +2,7 @@
stdenv,
lib,
fetchFromGitHub,
fetchpatch2,
cmake,
qt6,
qt6Packages,
@@ -40,6 +41,14 @@ stdenv.mkDerivation (finalAttrs: {
qt6.qtwayland
];
patches = [
(fetchpatch2 {
name = "disable-auto-update.patch";
url = "https://sources.debian.org/data/main/t/texstudio/4.9.1%2Bds-1/debian/patches/0004-disable-auto-update.patch";
hash = "sha256-w4/u8ObJSQqHisZmxMSpJeveE+DJSgLqnfpEnizHsBg=";
})
];
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
mkdir -p "$out/Applications"
mv "$out/bin/texstudio.app" "$out/Applications"