2022-02-20 05:27:41 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-11-12 09:05:59 +00:00
|
|
|
, meson
|
|
|
|
, fetchurl
|
|
|
|
, python3
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-11-12 09:05:59 +00:00
|
|
|
, gtk3
|
2022-04-15 01:41:22 +00:00
|
|
|
, gtk-mac-integration
|
2020-11-12 09:05:59 +00:00
|
|
|
, glib
|
|
|
|
, adwaita-icon-theme
|
|
|
|
, libpeas
|
2022-02-20 05:27:41 +00:00
|
|
|
, libxml2
|
2020-11-12 09:05:59 +00:00
|
|
|
, gtksourceview4
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, wrapGAppsHook
|
|
|
|
, ninja
|
|
|
|
, libsoup
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-11-12 09:05:59 +00:00
|
|
|
, gspell
|
|
|
|
, perl
|
|
|
|
, itstool
|
|
|
|
, desktop-file-utils
|
|
|
|
, vala
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gedit";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "43.alpha";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-05-20 23:08:51 +00:00
|
|
|
url = "mirror://gnome/sources/gedit/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
2022-10-21 18:38:19 +00:00
|
|
|
sha256 = "K3iOqhbYeeOVdGmS/OdmC5WtIpQ5OgHs0t5CzdWW95o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
patches = [
|
|
|
|
# We patch gobject-introspection and meson to store absolute paths to libraries in typelibs
|
|
|
|
# but that requires the install_dir is an absolute path.
|
|
|
|
./correct-gir-lib-path.patch
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
2020-11-12 09:05:59 +00:00
|
|
|
desktop-file-utils
|
|
|
|
itstool
|
2022-02-20 05:27:41 +00:00
|
|
|
libxml2
|
2020-11-12 09:05:59 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
perl
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-11-12 09:05:59 +00:00
|
|
|
python3
|
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2020-11-12 09:05:59 +00:00
|
|
|
adwaita-icon-theme
|
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gspell
|
|
|
|
gtk3
|
|
|
|
gtksourceview4
|
|
|
|
libpeas
|
|
|
|
libsoup
|
2022-04-15 01:41:22 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
gtk-mac-integration
|
2020-04-24 23:36:52 +00: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;
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = "gedit";
|
2021-05-20 23:08:51 +00:00
|
|
|
attrPath = "gnome.gedit";
|
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/Gedit";
|
|
|
|
description = "Official text editor of the GNOME desktop environment";
|
|
|
|
maintainers = teams.gnome.members;
|
2022-02-20 05:27:41 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|