nixpkgs/pkgs/applications/editors/texworks/default.nix

33 lines
954 B
Nix
Raw Normal View History

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