2017-09-18 23:06:57 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake, pkgconfig
|
|
|
|
, qt5, libsForQt5, hunspell
|
|
|
|
, withLua ? true, lua
|
2019-03-17 15:28:07 +00:00
|
|
|
, withPython ? true, python3 }:
|
2017-09-18 23:06:57 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "texworks";
|
2020-03-18 11:58:19 +00:00
|
|
|
version = "0.6.4";
|
2017-09-18 23:06:57 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TeXworks";
|
|
|
|
repo = "texworks";
|
|
|
|
rev = "release-${version}";
|
2020-03-18 11:58:19 +00:00
|
|
|
sha256 = "0d7f23c6c1wj4aii4h5w9piv01qfb69zrd79dvxwydrk99i8gnl4";
|
2017-09-18 23:06:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2019-03-17 15:28:07 +00:00
|
|
|
buildInputs = [ qt5.qtscript libsForQt5.poppler hunspell ]
|
2017-09-18 23:06:57 +01:00
|
|
|
++ lib.optional withLua lua
|
2019-03-17 15:28:07 +00:00
|
|
|
++ lib.optional withPython python3;
|
2017-09-18 23:06:57 +01:00
|
|
|
|
|
|
|
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";
|
2020-03-18 11:58:19 +00:00
|
|
|
homepage = "http://www.tug.org/texworks/";
|
2017-09-18 23:06:57 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|