{ stdenv, lib, fetchFromGitLab, desktop-file-utils, docbook-xsl-nons, gettext, gobject-introspection, gtk-doc, itstool, meson, ninja, pkg-config, vala, wrapGAppsHook3, dconf, glib, gsettings-desktop-schemas, gspell, libgedit-amtk, libgedit-gtksourceview, libgedit-tepl, libgee, gitUpdater, }: stdenv.mkDerivation (finalAttrs: { pname = "enter-tex"; version = "3.48.0"; src = fetchFromGitLab { domain = "gitlab.gnome.org"; group = "World"; owner = "gedit"; repo = "enter-tex"; tag = finalAttrs.version; hash = "sha256-OnkP4E1kNWuE9k7SQ/ujnxnFgVyAqIhqHAw04ZA0Tno="; }; nativeBuildInputs = [ desktop-file-utils docbook-xsl-nons gettext gobject-introspection gtk-doc itstool meson ninja pkg-config vala wrapGAppsHook3 ]; buildInputs = [ dconf glib gsettings-desktop-schemas gspell libgedit-amtk libgedit-gtksourceview libgedit-tepl libgee ]; preBuild = '' # Workaround the use case of C code mixed with Vala code. # https://gitlab.gnome.org/World/gedit/enter-tex/-/blob/3.48.0/docs/more-information.md#install-procedure ninja src/gtex/Gtex-1.gir ''; doCheck = true; passthru.updateScript = gitUpdater { }; meta = with lib; { homepage = "https://gitlab.gnome.org/World/gedit/enter-tex"; description = "LaTeX editor for the GNOME desktop"; maintainers = with maintainers; [ manveru bobby285271 ]; license = licenses.gpl3Plus; platforms = platforms.linux; mainProgram = "enter-tex"; }; })