summary refs log tree commit diff
path: root/pkgs/applications/editors/texmaker/default.nix
blob: 036bd8e546c4b45ff076dc9eee409bfb52928f85 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ stdenv, fetchurl, qtbase, qtscript, qmake, zlib, pkgconfig, poppler }:

stdenv.mkDerivation rec {
  pname = "texmaker";
  version = "5.0.3";
  name = "${pname}-${version}";

  src = fetchurl {
    url = "http://www.xm1math.net/texmaker/${name}.tar.bz2";
    sha256 = "0vrj9w5lk3vf6138n5bz8phmy3xp5kv4dq1rgirghcf4hbxdyx30";
  };

  buildInputs = [ qtbase qtscript poppler zlib ];
  nativeBuildInputs = [ pkgconfig poppler qmake ];
  NIX_CFLAGS_COMPILE="-I${poppler.dev}/include/poppler";

  preConfigure = ''
    qmakeFlags="$qmakeFlags DESKTOPDIR=$out/share/applications ICONDIR=$out/share/pixmaps METAINFODIR=$out/share/metainfo"
  '';


  enableParallelBuilding = true;

  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 ];
  };
}