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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, wrapQtAppsHook
, hunspell
, poppler
, qt5compat
, qttools
2017-09-18 22:06:57 +00:00
, withLua ? true, lua
2019-03-17 15:28:07 +00:00
, withPython ? true, python3 }:
2017-09-18 22:06:57 +00:00
stdenv.mkDerivation rec {
pname = "texworks";
version = "0.6.8";
2017-09-18 22:06:57 +00:00
src = fetchFromGitHub {
owner = "TeXworks";
repo = "texworks";
rev = "release-${version}";
sha256 = "sha256-X0VuXNghHoNsNNDfZJXXJ++nfUa5ofjW8rv3CHOUzxQ=";
2017-09-18 22:06:57 +00:00
};
nativeBuildInputs = [
cmake
pkg-config
wrapQtAppsHook
];
2017-09-18 22:06:57 +00:00
buildInputs = [
hunspell
poppler
qt5compat
qttools
] ++ lib.optional withLua lua
++ lib.optional withPython python3;
cmakeFlags = [
"-DQT_DEFAULT_MAJOR_VERSION=6"
] ++ lib.optional withLua "-DWITH_LUA=ON"
++ lib.optional withPython "-DWITH_PYTHON=ON";
2017-09-18 22:06:57 +00:00
2020-03-18 19:53:54 +00:00
meta = with lib; {
changelog = "https://github.com/TeXworks/texworks/blob/${src.rev}/NEWS";
2017-09-18 22:06:57 +00:00
description = "Simple TeX front-end program inspired by TeXShop";
homepage = "http://www.tug.org/texworks/";
2017-09-18 22:06:57 +00:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ dotlambda ];
platforms = with platforms; linux;
};
}