2024-05-15 15:35:15 +00:00
|
|
|
{ lib, mkDerivation, fetchurl, qtbase, qtscript, qtwebengine, qmake, zlib, pkg-config, poppler, wrapGAppsHook3 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "texmaker";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "5.1.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.xm1math.net/texmaker/${pname}-${version}.tar.bz2";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-MgUE1itxtZHAa30LEgKsdQoxEv4soyjjBYAFXrMI/qY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-18 13:19:15 +00:00
|
|
|
buildInputs = [ qtbase qtscript poppler zlib qtwebengine ];
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ pkg-config poppler qmake wrapGAppsHook3 ];
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-I${poppler.dev}/include/poppler";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
qmakeFlags = [
|
|
|
|
"DESKTOPDIR=${placeholder "out"}/share/applications"
|
|
|
|
"ICONDIR=${placeholder "out"}/share/pixmaps"
|
|
|
|
"METAINFODIR=${placeholder "out"}/share/metainfo"
|
|
|
|
];
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "TeX and LaTeX editor";
|
|
|
|
longDescription=''
|
2021-02-05 17:12:51 +00:00
|
|
|
This editor is a full fledged IDE for TeX and
|
|
|
|
LaTeX editing with completion, structure viewer, preview,
|
|
|
|
spell checking and support of any compilation chain.
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.xm1math.net/texmaker/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ cfouche markuskowa ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "texmaker";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|