2018-03-12 00:56:26 +00:00
|
|
|
{ stdenv, fetchurl, qtbase, qtscript, qmake, zlib, pkgconfig, poppler }:
|
2014-04-24 09:54:09 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "texmaker";
|
2018-03-12 00:56:26 +00:00
|
|
|
version = "5.0.2";
|
2014-04-24 09:54:09 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.xm1math.net/texmaker/${name}.tar.bz2";
|
2018-03-12 00:56:26 +00:00
|
|
|
sha256 = "0y81mjm89b99pr9svcwpaf4iz2q9pc9hjas5kiwd1pbgl5vqskm9";
|
2014-04-24 09:54:09 +01:00
|
|
|
};
|
|
|
|
|
2018-03-12 00:56:26 +00:00
|
|
|
buildInputs = [ qtbase qtscript poppler zlib ];
|
|
|
|
nativeBuildInputs = [ pkgconfig poppler qmake ];
|
2016-04-16 18:45:33 +01:00
|
|
|
NIX_CFLAGS_COMPILE="-I${poppler.dev}/include/poppler";
|
2014-04-24 09:54:09 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
2018-03-12 00:56:26 +00:00
|
|
|
qmakeFlags="$qmakeFlags DESKTOPDIR=$out/share/applications ICONDIR=$out/share/pixmaps METAINFODIR=$out/share/metainfo"
|
2014-04-24 09:54:09 +01:00
|
|
|
'';
|
|
|
|
|
2018-03-12 00:56:26 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-04-24 09:54:09 +01:00
|
|
|
meta = with stdenv.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.
|
|
|
|
'';
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://www.xm1math.net/texmaker/;
|
2014-04-24 09:54:09 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ cfouche ];
|
|
|
|
};
|
|
|
|
}
|