2016-04-17 00:26:57 +01:00
|
|
|
{ stdenv, fetchurl, qt4, qmake4Hook, poppler_qt4, zlib, pkgconfig, poppler }:
|
2014-04-24 09:54:09 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "texmaker";
|
2015-05-05 21:30:13 +01:00
|
|
|
version = "4.4.1";
|
2014-04-24 09:54:09 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.xm1math.net/texmaker/${name}.tar.bz2";
|
2015-05-05 21:30:13 +01:00
|
|
|
sha256 = "1d5lb4sibdhvzgfr0zi48j92b4acvvvdy2biqi3jzjdnzy9r94w0";
|
2014-04-24 09:54:09 +01:00
|
|
|
};
|
|
|
|
|
2015-04-02 17:44:13 +01:00
|
|
|
buildInputs = [ qt4 poppler_qt4 zlib ];
|
2016-04-17 00:26:57 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig poppler qmake4Hook ];
|
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 = ''
|
2016-04-17 00:26:57 +01:00
|
|
|
qmakeFlags="$qmakeFlags DESKTOPDIR=$out/share/applications ICONDIR=$out/share/pixmaps"
|
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.
|
|
|
|
'';
|
|
|
|
homepage = "http://www.xm1math.net/texmaker/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ cfouche ];
|
|
|
|
};
|
|
|
|
}
|