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

33 lines
971 B
Nix
Raw Normal View History

2017-09-19 00:06:57 +02:00
{ stdenv, lib, fetchFromGitHub, cmake, pkgconfig
, qt5, libsForQt5, hunspell
, withLua ? true, lua
2019-03-17 16:28:07 +01:00
, withPython ? true, python3 }:
2017-09-19 00:06:57 +02:00
stdenv.mkDerivation rec {
pname = "texworks";
2019-03-17 16:28:07 +01:00
version = "0.6.3";
2017-09-19 00:06:57 +02:00
src = fetchFromGitHub {
owner = "TeXworks";
repo = "texworks";
rev = "release-${version}";
2019-03-17 16:28:07 +01:00
sha256 = "1ljfl784z7dmh6f1qacqhc6qhcaqdzw033yswbvpvkkck0lsk2mr";
2017-09-19 00:06:57 +02:00
};
nativeBuildInputs = [ cmake pkgconfig ];
2019-03-17 16:28:07 +01:00
buildInputs = [ qt5.qtscript libsForQt5.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";
meta = with stdenv.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;
};
}