summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/editors/texmacs
diff options
context:
space:
mode:
authorFlorian Franzen <Florian.Franzen@gmail.com>2020-04-09 16:05:11 +0200
committerFlorian Franzen <Florian.Franzen@gmail.com>2020-10-17 21:24:54 +0200
commita30600a387fae4fbf3603b97bedd22501f1a02df (patch)
tree1e0d51ae83cae0d183d30d0aa0c3cd5ce175816a /pkgs/applications/editors/texmacs
parent0b5d5d68289c1b9341c80b88d543b4699e9ec644 (diff)
texmacs: 1.99.11 -> 1.99.13
Diffstat (limited to 'pkgs/applications/editors/texmacs')
-rw-r--r--pkgs/applications/editors/texmacs/default.nix54
1 files changed, 34 insertions, 20 deletions
diff --git a/pkgs/applications/editors/texmacs/default.nix b/pkgs/applications/editors/texmacs/default.nix
index 91e2427a6c84..aeef43e3f0b8 100644
--- a/pkgs/applications/editors/texmacs/default.nix
+++ b/pkgs/applications/editors/texmacs/default.nix
@@ -1,5 +1,5 @@
-{ stdenv, callPackage,
- fetchurl, guile_1_8, qt4, xmodmap, which, makeWrapper, freetype,
+{ lib, mkDerivation, callPackage, fetchurl, fetchpatch,
+ guile_1_8, qtbase, xmodmap, which, freetype,
libjpeg,
sqlite,
tex ? null,
@@ -16,23 +16,30 @@
let
pname = "TeXmacs";
- version = "1.99.11";
+ version = "1.99.13";
common = callPackage ./common.nix {
inherit tex extraFonts chineseFonts japaneseFonts koreanFonts;
};
in
-stdenv.mkDerivation {
+mkDerivation {
name = "${pname}-${version}";
src = fetchurl {
url = "https://www.texmacs.org/Download/ftp/tmftp/source/TeXmacs-${version}-src.tar.gz";
- sha256 = "12bp0f34izzqimz49lfpgf4lyz3h45s9xbmk8v6zsawdjki76alg";
+ sha256 = "Aq0cS47QqmFQHelxRjANeJlgXCXagnYRykpAq7wHqbQ=";
};
- cmakeFlags = [
- # Texmacs' cmake build as of writing defaults to Qt5,
- # but we haven't updated to that yet.
- "-DTEXMACS_GUI=Qt4"
+ patches = [
+ # Minor patch for Qt 5.15 support, should be included in next release.
+ (fetchpatch {
+ url = "https://github.com/texmacs/texmacs/commit/3cf56af92326b74538f5e943928199ba6e963d0b.patch";
+ sha256 = "+OBQmnKgvQZZkLx6ea773Dwq0o7L92Sex/kcVUhmg6Q=";
+ })
+ # Fix returned version, lets hope they remember to bump the version next release.
+ (fetchpatch {
+ url = "https://github.com/texmacs/texmacs/commit/da5b67005d2fc31bb32ea1ead882c26af12d8cbb.patch";
+ sha256 = "czMgdraQErrdvN83jY76P673L52BpQkDwntmKvF0Ykg=";
+ })
];
enableParallelBuilding = true;
@@ -40,8 +47,7 @@ stdenv.mkDerivation {
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [
guile_1_8
- qt4
- makeWrapper
+ qtbase
ghostscriptX
freetype
libjpeg
@@ -51,18 +57,26 @@ stdenv.mkDerivation {
];
NIX_LDFLAGS = "-lz";
- postInstall = "wrapProgram $out/bin/texmacs --suffix PATH : " +
- (if ghostscriptX == null then "" else "${ghostscriptX}/bin:") +
- (if aspell == null then "" else "${aspell}/bin:") +
- (if tex == null then "" else "${tex}/bin:") +
- (if git == null then "" else "${git}/bin:") +
- (if python3 == null then "" else "${python3}/bin:") +
- "${xmodmap}/bin:${which}/bin";
+ qtWrapperArgs = [
+ "--suffix" "PATH" ":" (lib.makeBinPath [
+ xmodmap
+ which
+ ghostscriptX
+ aspell
+ tex
+ git
+ python3
+ ])
+ ];
+
+ postFixup = ''
+ wrapQtApp $out/bin/texmacs
+ '';
inherit (common) postPatch;
meta = common.meta // {
- maintainers = [ stdenv.lib.maintainers.roconnor ];
- platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux; # arbitrary choice
+ maintainers = [ lib.maintainers.roconnor ];
+ platforms = lib.platforms.gnu ++ lib.platforms.linux; # arbitrary choice
};
}