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

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

56 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, wrapQtAppsHook
, hunspell
, poppler
, qt5compat
, qttools
, qtwayland
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
stdenv.mkDerivation rec {
pname = "texworks";
version = "0.6.9";
2017-09-19 01:06:57 +03:00
src = fetchFromGitHub {
owner = "TeXworks";
repo = "texworks";
rev = "release-${version}";
sha256 = "sha256-G8TVTVQPELyE6H9a6gWSyWHi653TWzUoaRdlfPnngM0=";
2017-09-19 01:06:57 +03:00
};
nativeBuildInputs = [
cmake
pkg-config
wrapQtAppsHook
];
2017-09-19 01:06:57 +03:00
buildInputs = [
hunspell
poppler
qt5compat
qttools
] ++ lib.optional withLua lua
++ lib.optional withPython python3
++ lib.optional stdenv.isLinux qtwayland;
cmakeFlags = [
"-DQT_DEFAULT_MAJOR_VERSION=6"
] ++ lib.optional withLua "-DWITH_LUA=ON"
++ lib.optional withPython "-DWITH_PYTHON=ON";
2017-09-19 01:06:57 +03:00
2020-03-18 22:53:54 +03:00
meta = with lib; {
changelog = "https://github.com/TeXworks/texworks/blob/${src.rev}/NEWS";
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;
2023-11-27 04:17:53 +03:00
mainProgram = "texworks";
2017-09-19 01:06:57 +03:00
};
}