1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/editors/texmacs/default.nix

42 lines
1.2 KiB
Nix
Raw Normal View History

2017-11-20 22:29:37 +00:00
{ stdenv, callPackage,
fetchurl, guile_1_8, qt4, xmodmap, which, makeWrapper, freetype,
2017-11-20 22:29:37 +00:00
tex ? null,
aspell ? null,
ghostscriptX ? null,
extraFonts ? false,
chineseFonts ? false,
japaneseFonts ? false,
koreanFonts ? false }:
let
pname = "TeXmacs";
2015-07-25 18:38:45 +01:00
version = "1.99.2";
2017-11-20 22:29:37 +00:00
common = callPackage ./common.nix {
inherit tex extraFonts chineseFonts japaneseFonts koreanFonts;
};
in
2017-11-20 22:29:37 +00:00
stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl {
2015-07-25 18:38:45 +01:00
url = "http://www.texmacs.org/Download/ftp/tmftp/source/TeXmacs-${version}-src.tar.gz";
sha256 = "0l48g9746igiaxw657shm8g3xxk565vzsviajlrxqyljbh6py0fs";
};
2015-07-25 18:38:45 +01:00
buildInputs = [ guile_1_8 qt4 makeWrapper ghostscriptX freetype ];
2019-01-04 19:33:51 +00:00
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:") +
"${xmodmap}/bin:${which}/bin";
2017-11-20 22:29:37 +00:00
inherit (common) postPatch;
meta = common.meta // {
2013-08-16 22:44:33 +01:00
maintainers = [ stdenv.lib.maintainers.roconnor ];
platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux; # arbitrary choice
};
}