2020-03-18 20:53:54 +01:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, cmake, pkg-config
|
|
|
|
, qtscript, poppler, hunspell
|
2017-09-19 00:06:57 +02:00
|
|
|
, withLua ? true, lua
|
2019-03-17 16:28:07 +01:00
|
|
|
, withPython ? true, python3 }:
|
2017-09-19 00:06:57 +02:00
|
|
|
|
2020-03-18 20:53:54 +01:00
|
|
|
mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "texworks";
|
2020-04-01 22:08:03 +02:00
|
|
|
version = "0.6.5";
|
2017-09-19 00:06:57 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TeXworks";
|
|
|
|
repo = "texworks";
|
|
|
|
rev = "release-${version}";
|
2020-04-01 22:08:03 +02:00
|
|
|
sha256 = "1lw1p4iyzxypvjhnav11g6rwf6gx7kyzwy2iprvv8zzpqcdkjp2z";
|
2017-09-19 00:06:57 +02:00
|
|
|
};
|
|
|
|
|
2020-03-18 20:53:54 +01:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ qtscript poppler hunspell ]
|
2017-09-19 00:06:57 +02:00
|
|
|
++ lib.optional withLua lua
|
2019-03-17 16:28:07 +01:00
|
|
|
++ lib.optional withPython python3;
|
2017-09-19 00:06:57 +02:00
|
|
|
|
|
|
|
cmakeFlags = lib.optional withLua "-DWITH_LUA=ON"
|
|
|
|
++ lib.optional withPython "-DWITH_PYTHON=ON";
|
|
|
|
|
2020-03-18 20:53:54 +01:00
|
|
|
meta = with lib; {
|
2017-09-19 00:06:57 +02:00
|
|
|
description = "Simple TeX front-end program inspired by TeXShop";
|
2020-03-18 12:58:19 +01:00
|
|
|
homepage = "http://www.tug.org/texworks/";
|
2017-09-19 00:06:57 +02:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|