2023-02-21 16:11:14 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, hunspell
|
|
|
|
, poppler
|
|
|
|
, qt5compat
|
|
|
|
, qttools
|
2017-09-18 22:06:57 +00:00
|
|
|
, withLua ? true, lua
|
2019-03-17 15:28:07 +00:00
|
|
|
, withPython ? true, python3 }:
|
2017-09-18 22:06:57 +00:00
|
|
|
|
2023-02-21 16:11:14 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "texworks";
|
2023-02-21 16:11:14 +00:00
|
|
|
version = "0.6.8";
|
2017-09-18 22:06:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TeXworks";
|
|
|
|
repo = "texworks";
|
|
|
|
rev = "release-${version}";
|
2023-02-21 16:11:14 +00:00
|
|
|
sha256 = "sha256-X0VuXNghHoNsNNDfZJXXJ++nfUa5ofjW8rv3CHOUzxQ=";
|
2017-09-18 22:06:57 +00:00
|
|
|
};
|
|
|
|
|
2023-02-21 16:11:14 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
2017-09-18 22:06:57 +00:00
|
|
|
|
2023-02-21 16:11:14 +00:00
|
|
|
buildInputs = [
|
|
|
|
hunspell
|
|
|
|
poppler
|
|
|
|
qt5compat
|
|
|
|
qttools
|
|
|
|
] ++ lib.optional withLua lua
|
|
|
|
++ lib.optional withPython python3;
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DQT_DEFAULT_MAJOR_VERSION=6"
|
|
|
|
] ++ lib.optional withLua "-DWITH_LUA=ON"
|
|
|
|
++ lib.optional withPython "-DWITH_PYTHON=ON";
|
2017-09-18 22:06:57 +00:00
|
|
|
|
2020-03-18 19:53:54 +00:00
|
|
|
meta = with lib; {
|
2023-02-21 16:11:14 +00:00
|
|
|
changelog = "https://github.com/TeXworks/texworks/blob/${src.rev}/NEWS";
|
2017-09-18 22:06:57 +00:00
|
|
|
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 22:06:57 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|