From f3343f7518bd9bd0bb5a207e8d0cd0eee2f99ac2 Mon Sep 17 00:00:00 2001 From: Nova Hahn Date: Mon, 16 Feb 2026 00:20:47 +0100 Subject: [PATCH] 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. --- pkgs/by-name/te/texstudio/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/te/texstudio/package.nix b/pkgs/by-name/te/texstudio/package.nix index 82f21e30797b..c0bf0f592a72 100644 --- a/pkgs/by-name/te/texstudio/package.nix +++ b/pkgs/by-name/te/texstudio/package.nix @@ -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"