nixpkgs/pkgs/applications/editors/texmacs/default.nix

70 lines
1.3 KiB
Nix
Raw Normal View History

2020-11-19 13:35:19 +00:00
{ lib, mkDerivation, callPackage, fetchFromGitHub,
2020-04-09 14:05:11 +00: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,
pkgconfig,
2017-11-20 22:29:37 +00:00
ghostscriptX ? null,
extraFonts ? false,
chineseFonts ? false,
japaneseFonts ? false,
koreanFonts ? false }:
let
pname = "TeXmacs";
2020-11-19 13:35:19 +00:00
version = "1.99.15";
2017-11-20 22:29:37 +00:00
common = callPackage ./common.nix {
inherit tex extraFonts chineseFonts japaneseFonts koreanFonts;
};
in
2020-04-09 14:05:11 +00:00
mkDerivation {
name = "${pname}-${version}";
2020-11-19 13:35:19 +00:00
src = fetchFromGitHub {
owner = "texmacs";
repo = "texmacs";
rev = "v${version}";
sha256 = "04585hdh98fvyhj4wsxf69xal2wvfa6lg76gad8pr6ww9abi5105";
};
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [
guile_1_8
2020-04-09 14:05:11 +00:00
qtbase
ghostscriptX
freetype
libjpeg
sqlite
git
python3
];
2019-10-30 11:34:47 +00:00
NIX_LDFLAGS = "-lz";
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
'';
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
};
}