Merge pull request #261441 from wegank/texmacs-bump

texmacs: 2.1 -> 2.1.2

authored by Weijia Wang and committed by GitHub 9fc01a01 f701298d

+32 -11
+31 -11
pkgs/applications/editors/texmacs/default.nix
··· 1 - { lib, mkDerivation, callPackage, fetchurl, 2 - guile_1_8, qtbase, xmodmap, which, freetype, 1 + { lib, stdenv, callPackage, fetchurl, 2 + guile_1_8, xmodmap, which, freetype, 3 3 libjpeg, 4 4 sqlite, 5 5 tex ? null, ··· 8 8 python3 ? null, 9 9 cmake, 10 10 pkg-config, 11 + wrapQtAppsHook, 12 + xdg-utils, 13 + qtbase, 14 + qtsvg, 15 + qtmacextras, 11 16 ghostscriptX ? null, 12 17 extraFonts ? false, 13 18 chineseFonts ? false, ··· 15 20 koreanFonts ? false }: 16 21 17 22 let 18 - pname = "TeXmacs"; 19 - version = "2.1"; 23 + pname = "texmacs"; 24 + version = "2.1.2"; 20 25 common = callPackage ./common.nix { 21 26 inherit tex extraFonts chineseFonts japaneseFonts koreanFonts; 22 27 }; 23 28 in 24 - mkDerivation { 29 + stdenv.mkDerivation { 25 30 inherit pname version; 26 31 27 32 src = fetchurl { 28 33 url = "https://www.texmacs.org/Download/ftp/tmftp/source/TeXmacs-${version}-src.tar.gz"; 29 - sha256 = "1gl6k1bwrk1y7hjyl4xvlqvmk5crl4jvsk8wrfp7ynbdin6n2i48"; 34 + hash = "sha256-Ds9gxOwMYSttEWrawgxLHGxHyMBvt8WmyPIwBP2g/CM="; 30 35 }; 31 36 32 - nativeBuildInputs = [ cmake pkg-config ]; 37 + postPatch = common.postPatch + '' 38 + substituteInPlace configure \ 39 + --replace "-mfpmath=sse -msse2" "" 40 + ''; 41 + 42 + nativeBuildInputs = [ 43 + guile_1_8 44 + pkg-config 45 + wrapQtAppsHook 46 + xdg-utils 47 + ] ++ lib.optionals (!stdenv.isDarwin) [ 48 + cmake 49 + ]; 50 + 33 51 buildInputs = [ 34 52 guile_1_8 35 53 qtbase 54 + qtsvg 36 55 ghostscriptX 37 56 freetype 38 57 libjpeg 39 58 sqlite 40 59 git 41 60 python3 61 + ] ++ lib.optionals stdenv.isDarwin [ 62 + qtmacextras 42 63 ]; 43 - NIX_LDFLAGS = "-lz"; 64 + 65 + env.NIX_LDFLAGS = "-lz"; 44 66 45 67 qtWrapperArgs = [ 46 68 "--suffix" "PATH" ":" (lib.makeBinPath [ ··· 58 80 wrapQtApp $out/bin/texmacs 59 81 ''; 60 82 61 - inherit (common) postPatch; 62 - 63 83 meta = common.meta // { 64 84 maintainers = [ lib.maintainers.roconnor ]; 65 - platforms = lib.platforms.gnu ++ lib.platforms.linux; # arbitrary choice 85 + platforms = lib.platforms.all; 66 86 }; 67 87 }
+1
pkgs/top-level/all-packages.nix
··· 13836 13836 tewisay = callPackage ../tools/misc/tewisay { }; 13837 13837 13838 13838 texmacs = libsForQt5.callPackage ../applications/editors/texmacs { 13839 + stdenv = if stdenv.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv; 13839 13840 tex = texlive.combined.scheme-small; 13840 13841 extraFonts = true; 13841 13842 };