about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2017-09-21 12:07:00 +0100
committerGitHub <noreply@github.com>2017-09-21 12:07:00 +0100
commita3ed68611023cc9256e0e1741864f0674a2fad87 (patch)
tree36c182c80fe4f0bf1c8c0152e443dee82664844a
parent49d18cd42b949be34bf5ba2d364747ba053b9432 (diff)
parent50d52ac8a8f34ee284fb44cf9dffb9c25884d8c6 (diff)
downloadnixlib-a3ed68611023cc9256e0e1741864f0674a2fad87.tar
nixlib-a3ed68611023cc9256e0e1741864f0674a2fad87.tar.gz
nixlib-a3ed68611023cc9256e0e1741864f0674a2fad87.tar.bz2
nixlib-a3ed68611023cc9256e0e1741864f0674a2fad87.tar.lz
nixlib-a3ed68611023cc9256e0e1741864f0674a2fad87.tar.xz
nixlib-a3ed68611023cc9256e0e1741864f0674a2fad87.tar.zst
nixlib-a3ed68611023cc9256e0e1741864f0674a2fad87.zip
Merge pull request #29545 from dotlambda/texworks
texworks: init at 0.6.2
-rw-r--r--pkgs/applications/editors/texworks/default.nix32
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/applications/editors/texworks/default.nix b/pkgs/applications/editors/texworks/default.nix
new file mode 100644
index 000000000000..fe90250d4152
--- /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;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 19a4432dfb82..509124f5eda8 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -4552,6 +4552,8 @@ with pkgs;
 
   textadept = callPackage ../applications/editors/textadept { };
 
+  texworks = callPackage ../applications/editors/texworks { };
+
   thc-hydra = callPackage ../tools/security/thc-hydra { };
 
   thefuck = callPackage ../tools/misc/thefuck { };