2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, fetchpatch
|
|
|
|
, autoreconfHook
|
|
|
|
, gtk-doc
|
|
|
|
, vala
|
|
|
|
, gobject-introspection
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gspell
|
|
|
|
, gtksourceview4
|
|
|
|
, libgee
|
|
|
|
, tepl
|
|
|
|
, amtk
|
|
|
|
, gnome
|
|
|
|
, glib
|
|
|
|
, pkg-config
|
|
|
|
, intltool
|
|
|
|
, itstool
|
|
|
|
, libxml2
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-11-12 09:05:59 +00:00
|
|
|
version = "3.38.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gnome-latex";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-17 00:15:33 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-11-12 09:05:59 +00:00
|
|
|
sha256 = "0xqd49pgi82dygqnxj08i1v22b0vwwhx3zvdinhrx4jny339yam8";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
patches = [
|
|
|
|
# Fix build with latest tepl.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/Archive/gnome-latex/commit/e1b01186f8a4e5d3fee4c9ccfbedd6d098517df9.patch";
|
|
|
|
sha256 = "H8cbp5hDZoXytEdKE2D/oYHNKIbEFwxQoEaC4JMfGHY=";
|
|
|
|
})
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2021-05-20 23:08:51 +00:00
|
|
|
autoreconfHook
|
|
|
|
gtk-doc
|
|
|
|
vala
|
|
|
|
gobject-introspection
|
2020-04-24 23:36:52 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
itstool
|
|
|
|
intltool
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
amtk
|
2021-05-20 23:08:51 +00:00
|
|
|
gnome.adwaita-icon-theme
|
2020-04-24 23:36:52 +00:00
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gspell
|
|
|
|
gtksourceview4
|
|
|
|
libgee
|
|
|
|
libxml2
|
|
|
|
tepl
|
|
|
|
];
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--disable-dconf-migration"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
|
|
|
|
|
|
|
passthru.updateScript = gnome.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "odd-unstable";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/GNOME-LaTeX";
|
|
|
|
description = "A LaTeX editor for the GNOME desktop";
|
|
|
|
maintainers = [ maintainers.manveru ];
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|