Commit 60448a88 authored by Robert Schütz's avatar Robert Schütz Committed by Robert Schütz
Browse files
parent 30c3b909
Loading
Loading
Loading
Loading
+31 −11
Original line number Diff line number Diff line
{ mkDerivation, lib, fetchFromGitHub, cmake, pkg-config
, qtscript, poppler, hunspell
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, wrapQtAppsHook
, hunspell
, poppler
, qt5compat
, qttools
, withLua ? true, lua
, withPython ? true, python3 }:

mkDerivation rec {
stdenv.mkDerivation rec {
  pname = "texworks";
  version = "0.6.7";
  version = "0.6.8";

  src = fetchFromGitHub {
    owner = "TeXworks";
    repo = "texworks";
    rev = "release-${version}";
    sha256 = "sha256-v0UukFM5brPtgq+zH5H1KfUc0eL0hjTC9z0tVQRqu2Q=";
    sha256 = "sha256-X0VuXNghHoNsNNDfZJXXJ++nfUa5ofjW8rv3CHOUzxQ=";
  };

  nativeBuildInputs = [ cmake pkg-config ];
  buildInputs = [ qtscript poppler hunspell ]
                ++ lib.optional withLua lua
  nativeBuildInputs = [
    cmake
    pkg-config
    wrapQtAppsHook
  ];

  buildInputs = [
    hunspell
    poppler
    qt5compat
    qttools
  ] ++ lib.optional withLua lua
    ++ lib.optional withPython python3;

  cmakeFlags = lib.optional withLua "-DWITH_LUA=ON"
  cmakeFlags = [
    "-DQT_DEFAULT_MAJOR_VERSION=6"
  ] ++ lib.optional withLua "-DWITH_LUA=ON"
    ++ lib.optional withPython "-DWITH_PYTHON=ON";

  meta = with lib; {
    changelog = "https://github.com/TeXworks/texworks/blob/${src.rev}/NEWS";
    description = "Simple TeX front-end program inspired by TeXShop";
    homepage = "http://www.tug.org/texworks/";
    license = licenses.gpl2Plus;
+1 −1
Original line number Diff line number Diff line
@@ -12547,7 +12547,7 @@ with pkgs;
  textadept = callPackage ../applications/editors/textadept { };
  texworks = libsForQt5.callPackage ../applications/editors/texworks { };
  texworks = qt6Packages.callPackage ../applications/editors/texworks { };
  tf2pulumi = callPackage ../development/tools/tf2pulumi { };