2019-03-03 10:37:06 -08:00
|
|
|
{ stdenv, meson, fetchurl, python3
|
2019-02-13 13:47:50 -08:00
|
|
|
, pkgconfig, gtk3, glib, adwaita-icon-theme
|
2019-03-03 10:37:06 -08:00
|
|
|
, libpeas, gtksourceview4, gsettings-desktop-schemas
|
|
|
|
, wrapGAppsHook, ninja, libsoup, libxml2
|
|
|
|
, gnome3, gspell, perl, itstool, desktop-file-utils }:
|
2016-09-18 12:35:23 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 12:07:20 -08:00
|
|
|
name = "gedit-${version}";
|
2019-05-15 18:07:35 -07:00
|
|
|
version = "3.32.2";
|
2018-02-25 12:07:20 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-04 17:12:11 -07:00
|
|
|
url = "mirror://gnome/sources/gedit/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2019-05-15 18:07:35 -07:00
|
|
|
sha256 = "1q2rk7fym542c7k3bn2wlnzgy384gxacbifsjny0spbg95gfybvl";
|
2018-02-25 12:07:20 -08:00
|
|
|
};
|
|
|
|
|
2019-03-03 10:37:06 -08:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig wrapGAppsHook meson ninja libxml2
|
|
|
|
python3 perl itstool desktop-file-utils
|
|
|
|
];
|
2016-09-18 12:35:23 -07:00
|
|
|
|
2018-03-22 11:47:02 -07:00
|
|
|
buildInputs = [
|
|
|
|
gtk3 glib
|
2019-02-13 13:47:50 -08:00
|
|
|
adwaita-icon-theme libsoup
|
2019-03-03 10:37:06 -08:00
|
|
|
libpeas gtksourceview4
|
2019-02-13 13:47:50 -08:00
|
|
|
gsettings-desktop-schemas gspell
|
2018-03-22 11:47:02 -07:00
|
|
|
];
|
2016-09-18 12:35:23 -07:00
|
|
|
|
2019-03-03 10:37:06 -08:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson/post_install.py
|
|
|
|
chmod +x plugins/externaltools/scripts/gedit-tool-merge.pl
|
|
|
|
patchShebangs build-aux/meson/post_install.py
|
|
|
|
patchShebangs plugins/externaltools/scripts/gedit-tool-merge.pl
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Reliably fails to generate gedit-file-browser-enum-types.h in time
|
|
|
|
enableParallelBuilding = false;
|
2016-09-18 12:35:23 -07:00
|
|
|
|
2018-03-22 11:47:02 -07:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "gedit";
|
|
|
|
attrPath = "gnome3.gedit";
|
|
|
|
};
|
|
|
|
};
|
2016-09-18 12:35:23 -07:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Gedit;
|
|
|
|
description = "Official text editor of the GNOME desktop environment";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|