mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
33 lines
954 B
Nix
33 lines
954 B
Nix
{ mkDerivation, lib, fetchFromGitHub, cmake, pkg-config
|
|
, qtscript, poppler, hunspell
|
|
, withLua ? true, lua
|
|
, withPython ? true, python3 }:
|
|
|
|
mkDerivation rec {
|
|
pname = "texworks";
|
|
version = "0.6.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "TeXworks";
|
|
repo = "texworks";
|
|
rev = "release-${version}";
|
|
sha256 = "0l8jl1b8lpas7yz6m0qc2nikyn54lx2ljzmjjz3zgxgd6l502006";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
buildInputs = [ qtscript poppler hunspell ]
|
|
++ lib.optional withLua lua
|
|
++ lib.optional withPython python3;
|
|
|
|
cmakeFlags = lib.optional withLua "-DWITH_LUA=ON"
|
|
++ lib.optional withPython "-DWITH_PYTHON=ON";
|
|
|
|
meta = with lib; {
|
|
description = "Simple TeX front-end program inspired by TeXShop";
|
|
homepage = "http://www.tug.org/texworks/";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
platforms = with platforms; linux;
|
|
};
|
|
}
|