Skip to content

Commit

Permalink
texworks: use Qt 5.15
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda committed Feb 3, 2021
1 parent e44011c commit b2e5c48
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion pkgs/applications/editors/texworks/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ mkDerivation, lib, fetchFromGitHub, cmake, pkg-config
{ mkDerivation, lib, fetchFromGitHub, fetchpatch, cmake, pkg-config
, qtscript, poppler, hunspell
, withLua ? true, lua
, withPython ? true, python3 }:
Expand All @@ -14,6 +14,14 @@ mkDerivation rec {
sha256 = "1lw1p4iyzxypvjhnav11g6rwf6gx7kyzwy2iprvv8zzpqcdkjp2z";
};

patches = [
(fetchpatch {
name = "fix-compilation-with-qt-5.15.patch";
url = "https://github.com/TeXworks/texworks/commit/a5352a3a94e3685125650b65e6197de060326cc2.patch";
sha256 = "0pf7h1m11x0s039bxknm7rxdp9b4g8ch86y38jlyy56c74mw97i6";
})
];

nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ qtscript poppler hunspell ]
++ lib.optional withLua lua
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8253,7 +8253,7 @@ in

textadept11 = callPackage ../applications/editors/textadept/11 { };

texworks = libsForQt514.callPackage ../applications/editors/texworks { };
texworks = libsForQt5.callPackage ../applications/editors/texworks { };

thc-hydra = callPackage ../tools/security/thc-hydra { };

Expand Down

0 comments on commit b2e5c48

Please sign in to comment.