2021-01-27 12:06:32 +00:00
|
|
|
{ lib, mkDerivation, callPackage, fetchurl,
|
2020-04-09 14:05:11 +00:00
|
|
|
guile_1_8, qtbase, xmodmap, which, freetype,
|
2019-06-30 02:22:21 +00:00
|
|
|
libjpeg,
|
|
|
|
sqlite,
|
2017-11-20 22:29:37 +00:00
|
|
|
tex ? null,
|
|
|
|
aspell ? null,
|
2019-06-30 02:22:21 +00:00
|
|
|
git ? null,
|
|
|
|
python3 ? null,
|
|
|
|
cmake,
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config,
|
2017-11-20 22:29:37 +00:00
|
|
|
ghostscriptX ? null,
|
|
|
|
extraFonts ? false,
|
|
|
|
chineseFonts ? false,
|
|
|
|
japaneseFonts ? false,
|
|
|
|
koreanFonts ? false }:
|
|
|
|
|
|
|
|
let
|
2010-10-04 15:07:38 +00:00
|
|
|
pname = "TeXmacs";
|
2021-07-07 16:00:15 +00:00
|
|
|
version = "2.1";
|
2017-11-20 22:29:37 +00:00
|
|
|
common = callPackage ./common.nix {
|
|
|
|
inherit tex extraFonts chineseFonts japaneseFonts koreanFonts;
|
2010-10-04 15:07:38 +00:00
|
|
|
};
|
|
|
|
in
|
2020-04-09 14:05:11 +00:00
|
|
|
mkDerivation {
|
2021-01-27 12:06:32 +00:00
|
|
|
inherit pname version;
|
2010-10-04 15:07:38 +00:00
|
|
|
|
2021-01-27 12:06:32 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.texmacs.org/Download/ftp/tmftp/source/TeXmacs-${version}-src.tar.gz";
|
2021-07-07 16:00:15 +00:00
|
|
|
sha256 = "1gl6k1bwrk1y7hjyl4xvlqvmk5crl4jvsk8wrfp7ynbdin6n2i48";
|
2010-10-04 15:07:38 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2019-06-30 02:22:21 +00:00
|
|
|
buildInputs = [
|
|
|
|
guile_1_8
|
2020-04-09 14:05:11 +00:00
|
|
|
qtbase
|
2019-06-30 02:22:21 +00:00
|
|
|
ghostscriptX
|
|
|
|
freetype
|
|
|
|
libjpeg
|
|
|
|
sqlite
|
|
|
|
git
|
|
|
|
python3
|
|
|
|
];
|
2019-10-30 11:34:47 +00:00
|
|
|
NIX_LDFLAGS = "-lz";
|
2010-10-04 15:07:38 +00:00
|
|
|
|
2020-04-09 14:05:11 +00:00
|
|
|
qtWrapperArgs = [
|
|
|
|
"--suffix" "PATH" ":" (lib.makeBinPath [
|
|
|
|
xmodmap
|
|
|
|
which
|
|
|
|
ghostscriptX
|
|
|
|
aspell
|
|
|
|
tex
|
|
|
|
git
|
|
|
|
python3
|
|
|
|
])
|
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapQtApp $out/bin/texmacs
|
|
|
|
'';
|
2010-10-04 15:07:38 +00:00
|
|
|
|
2017-11-20 22:29:37 +00:00
|
|
|
inherit (common) postPatch;
|
|
|
|
|
|
|
|
meta = common.meta // {
|
2020-04-09 14:05:11 +00:00
|
|
|
maintainers = [ lib.maintainers.roconnor ];
|
|
|
|
platforms = lib.platforms.gnu ++ lib.platforms.linux; # arbitrary choice
|
2010-10-04 15:07:38 +00:00
|
|
|
};
|
|
|
|
}
|