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

35 lines
1.1 KiB
Nix
Raw Normal View History

2021-08-16 12:53:22 +03:00
{ lib, mkDerivation, fetchurl, qtbase, qtscript, qtwebengine, qmake, zlib, pkg-config, poppler }:
2019-10-22 16:36:52 +03:00
mkDerivation rec {
pname = "texmaker";
2021-09-14 05:22:54 +03:00
version = "5.1.2";
src = fetchurl {
url = "http://www.xm1math.net/texmaker/${pname}-${version}.tar.bz2";
2021-09-14 05:22:54 +03:00
sha256 = "sha256-UmiW8sGuVhEw7seq6BW53Nqejut3K2VB0NyUzpGnEEQ=";
};
2021-08-16 12:53:22 +03:00
buildInputs = [ qtbase qtscript poppler zlib qtwebengine ];
nativeBuildInputs = [ pkg-config poppler qmake ];
NIX_CFLAGS_COMPILE="-I${poppler.dev}/include/poppler";
qmakeFlags = [
"DESKTOPDIR=${placeholder "out"}/share/applications"
"ICONDIR=${placeholder "out"}/share/pixmaps"
"METAINFODIR=${placeholder "out"}/share/metainfo"
];
2018-03-12 03:56:26 +03:00
2019-10-22 16:36:52 +03:00
meta = with lib; {
description = "TeX and LaTeX editor";
longDescription=''
This editor is a full fledged IDE for TeX and
LaTeX editing with completion, structure viewer, preview,
spell checking and support of any compilation chain.
'';
homepage = "http://www.xm1math.net/texmaker/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
2019-02-09 22:48:39 +03:00
maintainers = with maintainers; [ cfouche markuskowa ];
};
}