3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/editors/texworks/default.nix
R. RyanTM 12be6698e8 texworks: 0.6.3 -> 0.6.4
(cherry picked from commit b35de30a2b)
2020-03-18 15:59:17 -07:00

33 lines
973 B
Nix

{ stdenv, lib, fetchFromGitHub, cmake, pkgconfig
, qt5, libsForQt5, hunspell
, withLua ? true, lua
, withPython ? true, python3 }:
stdenv.mkDerivation rec {
pname = "texworks";
version = "0.6.4";
src = fetchFromGitHub {
owner = "TeXworks";
repo = "texworks";
rev = "release-${version}";
sha256 = "0d7f23c6c1wj4aii4h5w9piv01qfb69zrd79dvxwydrk99i8gnl4";
};
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ qt5.qtscript libsForQt5.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 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;
};
}