13 , withPython ? true, python3 }:
15 stdenv.mkDerivation rec {
19 src = fetchFromGitHub {
22 rev = "release-${version}";
23 sha256 = "sha256-G8TVTVQPELyE6H9a6gWSyWHi653TWzUoaRdlfPnngM0=";
37 ] ++ lib.optional withLua lua
38 ++ lib.optional withPython python3
39 ++ lib.optional stdenv.isLinux qtwayland;
42 "-DQT_DEFAULT_MAJOR_VERSION=6"
43 ] ++ lib.optional withLua "-DWITH_LUA=ON"
44 ++ lib.optional withPython "-DWITH_PYTHON=ON";
47 changelog = "https://github.com/TeXworks/texworks/blob/${src.rev}/NEWS";
48 description = "Simple TeX front-end program inspired by TeXShop";
49 homepage = "http://www.tug.org/texworks/";
50 license = licenses.gpl2Plus;
51 maintainers = with maintainers; [ dotlambda ];
52 platforms = with platforms; linux;
53 mainProgram = "texworks";