2020-10-20 17:27:49 +00:00
|
|
|
{ lib, mkDerivation, callPackage, fetchurl, fetchpatch,
|
|
|
|
guile_1_8, qtbase, xmodmap, which, freetype,
|
2020-04-24 23:36:52 +00:00
|
|
|
libjpeg,
|
|
|
|
sqlite,
|
|
|
|
tex ? null,
|
|
|
|
aspell ? null,
|
|
|
|
git ? null,
|
|
|
|
python3 ? null,
|
|
|
|
cmake,
|
|
|
|
pkgconfig,
|
|
|
|
ghostscriptX ? null,
|
|
|
|
extraFonts ? false,
|
|
|
|
chineseFonts ? false,
|
|
|
|
japaneseFonts ? false,
|
|
|
|
koreanFonts ? false }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "TeXmacs";
|
2020-11-09 15:59:12 +00:00
|
|
|
version = "1.99.14";
|
2020-04-24 23:36:52 +00:00
|
|
|
common = callPackage ./common.nix {
|
|
|
|
inherit tex extraFonts chineseFonts japaneseFonts koreanFonts;
|
|
|
|
};
|
|
|
|
in
|
2020-10-20 17:27:49 +00:00
|
|
|
mkDerivation {
|
2020-04-24 23:36:52 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.texmacs.org/Download/ftp/tmftp/source/TeXmacs-${version}-src.tar.gz";
|
2020-11-09 15:59:12 +00:00
|
|
|
sha256 = "1zbl1ddhppgnn3j213jl1b9mn8zmwnknxiqswm25p4llj0mqcgna";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
buildInputs = [
|
|
|
|
guile_1_8
|
2020-10-20 17:27:49 +00:00
|
|
|
qtbase
|
2020-04-24 23:36:52 +00:00
|
|
|
ghostscriptX
|
|
|
|
freetype
|
|
|
|
libjpeg
|
|
|
|
sqlite
|
|
|
|
git
|
|
|
|
python3
|
|
|
|
];
|
|
|
|
NIX_LDFLAGS = "-lz";
|
|
|
|
|
2020-10-20 17:27:49 +00:00
|
|
|
qtWrapperArgs = [
|
|
|
|
"--suffix" "PATH" ":" (lib.makeBinPath [
|
|
|
|
xmodmap
|
|
|
|
which
|
|
|
|
ghostscriptX
|
|
|
|
aspell
|
|
|
|
tex
|
|
|
|
git
|
|
|
|
python3
|
|
|
|
])
|
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapQtApp $out/bin/texmacs
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
inherit (common) postPatch;
|
|
|
|
|
|
|
|
meta = common.meta // {
|
2020-10-20 17:27:49 +00:00
|
|
|
maintainers = [ lib.maintainers.roconnor ];
|
|
|
|
platforms = lib.platforms.gnu ++ lib.platforms.linux; # arbitrary choice
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|