about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/texmaker/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/editors/texmaker/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/editors/texmaker/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/editors/texmaker/default.nix b/nixpkgs/pkgs/applications/editors/texmaker/default.nix
new file mode 100644
index 000000000000..0b78ff54c358
--- /dev/null
+++ b/nixpkgs/pkgs/applications/editors/texmaker/default.nix
@@ -0,0 +1,36 @@
+{ lib, mkDerivation, fetchurl, qtbase, qtscript, qmake, zlib, pkgconfig, poppler }:
+
+mkDerivation rec {
+  pname = "texmaker";
+  version = "5.0.4";
+
+  src = fetchurl {
+    url = "http://www.xm1math.net/texmaker/${pname}-${version}.tar.bz2";
+    sha256 = "1qnh5g8zkjpjmw2l8spcynpfgs3wpcfcla5ms2kkgvkbdlzspqqx";
+  };
+
+  buildInputs = [ qtbase qtscript poppler zlib ];
+  nativeBuildInputs = [ pkgconfig 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"
+  ];
+
+  enableParallelBuilding = true;
+
+  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;
+    maintainers = with maintainers; [ cfouche markuskowa ];
+  };
+}