1{
2 lib,
3 stdenv,
4 fetchurl,
5 cmake,
6 pkg-config,
7 wrapQtAppsHook,
8 poppler,
9 qtbase,
10 qttools,
11 qtwebengine,
12 qt5compat,
13 zlib,
14}:
15
16stdenv.mkDerivation rec {
17 pname = "texmaker";
18 version = "6.0.1";
19
20 src = fetchurl {
21 url = "http://www.xm1math.net/texmaker/texmaker-${version}.tar.bz2";
22 hash = "sha256-uMI13wzY/XcUzXDTte42MWOwJUqd6pGAeBuPDi5GyvY=";
23 };
24
25 buildInputs = [
26 poppler
27 qtbase
28 qtwebengine
29 qt5compat
30 qttools
31 zlib
32 ];
33 nativeBuildInputs = [
34 cmake
35 pkg-config
36 wrapQtAppsHook
37 ];
38
39 qmakeFlags = [
40 "DESKTOPDIR=${placeholder "out"}/share/applications"
41 "ICONDIR=${placeholder "out"}/share/pixmaps"
42 "METAINFODIR=${placeholder "out"}/share/metainfo"
43 ];
44
45 meta = with lib; {
46 description = "TeX and LaTeX editor";
47 longDescription = ''
48 This editor is a full fledged IDE for TeX and
49 LaTeX editing with completion, structure viewer, preview,
50 spell checking and support of any compilation chain.
51 '';
52 homepage = "http://www.xm1math.net/texmaker/";
53 license = licenses.gpl2Plus;
54 platforms = platforms.linux;
55 maintainers = with maintainers; [
56 cfouche
57 markuskowa
58 ];
59 mainProgram = "texmaker";
60 };
61}