Unverified Commit dd3547b0 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

texstudio: disable auto update (#490862)

parents cd66596e f3343f75
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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"