From f66a17427221bbbb76bdd5ef8011030341c4a457 Mon Sep 17 00:00:00 2001 From: ajs124 Date: Mon, 31 Jul 2023 11:52:29 +0200 Subject: [PATCH 1/2] texstudio: 4.5.2 -> 4.6.2 https://texstudio-org.github.io/CHANGELOG.html#texstudio-4-6-2 https://texstudio-org.github.io/CHANGELOG.html#texstudio-4-6-1 https://texstudio-org.github.io/CHANGELOG.html#texstudio-4-6-0 --- pkgs/applications/editors/texstudio/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/texstudio/default.nix b/pkgs/applications/editors/texstudio/default.nix index 35b06fde1f2c..bdb96271ef6b 100644 --- a/pkgs/applications/editors/texstudio/default.nix +++ b/pkgs/applications/editors/texstudio/default.nix @@ -3,13 +3,13 @@ mkDerivation rec { pname = "texstudio"; - version = "4.5.2"; + version = "4.6.2"; src = fetchFromGitHub { owner = "${pname}-org"; repo = pname; rev = version; - hash = "sha256-L+q4+k4XWywnxIvhfXPCBeCqnGj4E9BhAmgcAZhm7S8="; + hash = "sha256-2bvKB/8HcZoTk2J6FQXXJREqGp6EZ95C2Aqcx9o/eho="; }; nativeBuildInputs = [ cmake wrapQtAppsHook pkg-config ]; From 07347b5352cd1ba9f80930690638980600a503ee Mon Sep 17 00:00:00 2001 From: ajs124 Date: Mon, 31 Jul 2023 11:54:40 +0200 Subject: [PATCH 2/2] texstudio: qt5 -> qt6 --- .../editors/texstudio/default.nix | 32 +++++++++++++------ pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/pkgs/applications/editors/texstudio/default.nix b/pkgs/applications/editors/texstudio/default.nix index bdb96271ef6b..97f51014d0b6 100644 --- a/pkgs/applications/editors/texstudio/default.nix +++ b/pkgs/applications/editors/texstudio/default.nix @@ -1,19 +1,33 @@ -{ lib, mkDerivation, fetchFromGitHub, cmake, qtbase, qtscript, qtsvg, - wrapQtAppsHook, poppler, zlib, pkg-config }: +{ stdenv, lib, fetchFromGitHub, cmake, qtbase, qttools, qtsvg, qt5compat, quazip +, hunspell +, wrapQtAppsHook, poppler, zlib, pkg-config }: -mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "texstudio"; version = "4.6.2"; src = fetchFromGitHub { - owner = "${pname}-org"; - repo = pname; - rev = version; + owner = "texstudio-org"; + repo = "texstudio"; + rev = finalAttrs.version; hash = "sha256-2bvKB/8HcZoTk2J6FQXXJREqGp6EZ95C2Aqcx9o/eho="; }; - nativeBuildInputs = [ cmake wrapQtAppsHook pkg-config ]; - buildInputs = [ qtbase qtscript qtsvg poppler zlib ]; + nativeBuildInputs = [ + cmake + wrapQtAppsHook + pkg-config + ]; + buildInputs = [ + hunspell + poppler + qt5compat + qtbase + qtsvg + qttools + quazip + zlib + ]; meta = with lib; { description = "TeX and LaTeX editor"; @@ -28,4 +42,4 @@ mkDerivation rec { platforms = platforms.linux; maintainers = with maintainers; [ ajs124 cfouche ]; }; -} +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0ac157d4ba3f..e10a1589dd8f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13465,7 +13465,7 @@ with pkgs; texmaker = libsForQt5.callPackage ../applications/editors/texmaker { }; - texstudio = libsForQt5.callPackage ../applications/editors/texstudio { }; + texstudio = qt6Packages.callPackage ../applications/editors/texstudio { }; textadept = callPackage ../applications/editors/textadept { };