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

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

42 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, mkDerivation, fetchurl, qtbase, qtscript, qtwebengine, qmake, zlib, pkg-config, poppler, wrapGAppsHook }:
2019-10-22 13:36:52 +00:00
mkDerivation rec {
pname = "texmaker";
2023-05-07 13:57:15 +00:00
version = "5.1.4";
src = fetchurl {
url = "http://www.xm1math.net/texmaker/${pname}-${version}.tar.bz2";
2023-05-07 13:57:15 +00:00
sha256 = "sha256-MgUE1itxtZHAa30LEgKsdQoxEv4soyjjBYAFXrMI/qY=";
};
2021-08-16 09:53:22 +00:00
buildInputs = [ qtbase qtscript poppler zlib qtwebengine ];
nativeBuildInputs = [ pkg-config poppler qmake wrapGAppsHook ];
env.NIX_CFLAGS_COMPILE = "-I${poppler.dev}/include/poppler";
qmakeFlags = [
"DESKTOPDIR=${placeholder "out"}/share/applications"
"ICONDIR=${placeholder "out"}/share/pixmaps"
"METAINFODIR=${placeholder "out"}/share/metainfo"
];
2018-03-12 00:56:26 +00:00
dontWrapGApps = true;
preFixup = ''
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
2019-10-22 13:36:52 +00:00
meta = with lib; {
description = "TeX and LaTeX editor";
longDescription=''
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.
'';
homepage = "http://www.xm1math.net/texmaker/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
2019-02-09 19:48:39 +00:00
maintainers = with maintainers; [ cfouche markuskowa ];
2023-11-27 01:17:53 +00:00
mainProgram = "texmaker";
};
}