summary refs log tree commit diff
path: root/pkgs/applications/editors/texworks
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2017-09-19 00:06:57 +0200
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2017-09-21 00:58:49 +0200
commit50d52ac8a8f34ee284fb44cf9dffb9c25884d8c6 (patch)
tree9e675d4103da15e914d58a7020e82c9f96959e7c /pkgs/applications/editors/texworks
parent53233c19c96086b581ace4fec51c829482663b4d (diff)
downloadnixpkgs-50d52ac8a8f34ee284fb44cf9dffb9c25884d8c6.tar
nixpkgs-50d52ac8a8f34ee284fb44cf9dffb9c25884d8c6.tar.gz
nixpkgs-50d52ac8a8f34ee284fb44cf9dffb9c25884d8c6.tar.bz2
nixpkgs-50d52ac8a8f34ee284fb44cf9dffb9c25884d8c6.tar.lz
nixpkgs-50d52ac8a8f34ee284fb44cf9dffb9c25884d8c6.tar.xz
nixpkgs-50d52ac8a8f34ee284fb44cf9dffb9c25884d8c6.tar.zst
nixpkgs-50d52ac8a8f34ee284fb44cf9dffb9c25884d8c6.zip
texworks: init at 0.6.2
Diffstat (limited to 'pkgs/applications/editors/texworks')
-rw-r--r--pkgs/applications/editors/texworks/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/editors/texworks/default.nix b/pkgs/applications/editors/texworks/default.nix
new file mode 100644
index 00000000000..fe90250d415
--- /dev/null
+++ b/pkgs/applications/editors/texworks/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, lib, fetchFromGitHub, cmake, pkgconfig
+, qt5, libsForQt5, hunspell
+, withLua ? true, lua
+, withPython ? true, python }:
+
+stdenv.mkDerivation rec {
+  name = "texworks-${version}";
+  version = "0.6.2";
+
+  src = fetchFromGitHub {
+    owner = "TeXworks";
+    repo = "texworks";
+    rev = "release-${version}";
+    sha256 = "0kj4pq5h4vs2wwg6cazxjlv83x6cwdfsa76winfkdddaqzpdklsj";
+  };
+
+  nativeBuildInputs = [ cmake pkgconfig ];
+  buildInputs = [ qt5.qtscript libsForQt5.poppler hunspell lua python ]
+                ++ lib.optional withLua lua
+                ++ lib.optional withPython python;
+
+  cmakeFlags = lib.optional withLua "-DWITH_LUA=ON"
+               ++ lib.optional withPython "-DWITH_PYTHON=ON";
+
+  meta = with stdenv.lib; {
+    description = "Simple TeX front-end program inspired by TeXShop";
+    homepage = http://www.tug.org/texworks/;
+    license = licenses.gpl2Plus;
+    maintainers = with maintainers; [ dotlambda ];
+    platforms = with platforms; linux;
+  };
+}