3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/editors/texmacs/default.nix

68 lines
1.3 KiB
Nix
Raw Normal View History

2021-01-27 12:06:32 +00:00
{ lib, mkDerivation, callPackage, fetchurl,
2020-04-09 15:05:11 +01:00
guile_1_8, qtbase, xmodmap, which, freetype,
libjpeg,
sqlite,
2017-11-20 22:29:37 +00:00
tex ? null,
aspell ? null,
git ? null,
python3 ? null,
cmake,
pkg-config,
2017-11-20 22:29:37 +00:00
ghostscriptX ? null,
extraFonts ? false,
chineseFonts ? false,
japaneseFonts ? false,
koreanFonts ? false }:
let
pname = "TeXmacs";
2021-04-10 20:16:29 +01:00
version = "1.99.19";
2017-11-20 22:29:37 +00:00
common = callPackage ./common.nix {
inherit tex extraFonts chineseFonts japaneseFonts koreanFonts;
};
in
2020-04-09 15:05:11 +01:00
mkDerivation {
2021-01-27 12:06:32 +00:00
inherit pname version;
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-04-10 20:16:29 +01:00
sha256 = "1izwqb0z4gqiglv57mjswk6sjivny73kd2sxrf3nmj7wr12pn5m8";
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [
guile_1_8
2020-04-09 15:05:11 +01:00
qtbase
ghostscriptX
freetype
libjpeg
sqlite
git
python3
];
2019-10-30 11:34:47 +00:00
NIX_LDFLAGS = "-lz";
2020-04-09 15:05:11 +01:00
qtWrapperArgs = [
"--suffix" "PATH" ":" (lib.makeBinPath [
xmodmap
which
ghostscriptX
aspell
tex
git
python3
])
];
postFixup = ''
wrapQtApp $out/bin/texmacs
'';
2017-11-20 22:29:37 +00:00
inherit (common) postPatch;
meta = common.meta // {
2020-04-09 15:05:11 +01:00
maintainers = [ lib.maintainers.roconnor ];
platforms = lib.platforms.gnu ++ lib.platforms.linux; # arbitrary choice
};
}