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
|
2022-11-21 17:40:18 +00:00
|
|
|
, amtk
|
|
|
|
, tepl
|
2020-11-12 09:05:59 +00:00
|
|
|
, libpeas
|
2022-02-20 05:27:41 +00:00
|
|
|
, libxml2
|
2020-11-12 09:05:59 +00:00
|
|
|
, gtksourceview4
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, wrapGAppsHook
|
2022-11-21 17:40:18 +00:00
|
|
|
, gtk-doc
|
2023-07-15 17:15:38 +00:00
|
|
|
, gobject-introspection
|
2022-11-21 17:40:18 +00:00
|
|
|
, docbook-xsl-nons
|
2020-11-12 09:05:59 +00:00
|
|
|
, 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";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "44.2";
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "devdoc" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-11-21 17:40:18 +00:00
|
|
|
url = "mirror://gnome/sources/gedit/${lib.versions.major version}/gedit-${version}.tar.xz";
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "O7sbN3XUwnfa9UqqtEsOuDpOsfCfA5GAAEHJ5WiT7BE=";
|
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
|
2022-11-21 17:40:18 +00:00
|
|
|
gtk-doc
|
2023-07-15 17:15:38 +00:00
|
|
|
gobject-introspection
|
2022-11-21 17:40:18 +00:00
|
|
|
docbook-xsl-nons
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-11-21 17:40:18 +00:00
|
|
|
amtk
|
|
|
|
tepl
|
2020-11-12 09:05:59 +00:00
|
|
|
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-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";
|
2023-07-15 17:15:38 +00:00
|
|
|
description = "Former GNOME text editor";
|
|
|
|
maintainers = [ ];
|
2022-02-20 05:27:41 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|