2022-02-16 08:17:55 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-08-21 20:12:22 +00:00
|
|
|
, meson
|
|
|
|
, fetchurl
|
|
|
|
, python3
|
2021-01-17 02:21:50 +00:00
|
|
|
, pkg-config
|
2020-08-21 20:12:22 +00:00
|
|
|
, gtk3
|
2022-04-03 09:21:59 +00:00
|
|
|
, gtk-mac-integration
|
2020-08-21 20:12:22 +00:00
|
|
|
, glib
|
2022-11-11 23:08:01 +00:00
|
|
|
, amtk
|
|
|
|
, tepl
|
2020-08-21 20:12:22 +00:00
|
|
|
, libpeas
|
2022-02-16 08:17:55 +00:00
|
|
|
, libxml2
|
2020-08-21 20:12:22 +00:00
|
|
|
, gtksourceview4
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, wrapGAppsHook
|
2022-11-11 23:08:01 +00:00
|
|
|
, gtk-doc
|
2023-07-01 01:19:14 +00:00
|
|
|
, gobject-introspection
|
2022-11-11 23:08:01 +00:00
|
|
|
, docbook-xsl-nons
|
2020-08-21 20:12:22 +00:00
|
|
|
, ninja
|
|
|
|
, libsoup
|
2021-05-07 21:18:14 +00:00
|
|
|
, gnome
|
2020-08-21 20:12:22 +00:00
|
|
|
, gspell
|
|
|
|
, perl
|
|
|
|
, itstool
|
|
|
|
, desktop-file-utils
|
|
|
|
, vala
|
2020-02-09 00:31:27 +00:00
|
|
|
}:
|
2016-09-18 19:35:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "gedit";
|
2023-01-28 07:01:26 +00:00
|
|
|
version = "44.2";
|
2022-11-11 23:08:01 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "devdoc" ];
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-11-11 23:08:01 +00:00
|
|
|
url = "mirror://gnome/sources/gedit/${lib.versions.major version}/gedit-${version}.tar.xz";
|
2023-01-28 07:01:26 +00:00
|
|
|
sha256 = "O7sbN3XUwnfa9UqqtEsOuDpOsfCfA5GAAEHJ5WiT7BE=";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2021-11-16 14:00:20 +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
|
|
|
|
];
|
|
|
|
|
2019-03-03 18:37:06 +00:00
|
|
|
nativeBuildInputs = [
|
2020-08-21 20:12:22 +00:00
|
|
|
desktop-file-utils
|
|
|
|
itstool
|
2022-02-16 08:17:55 +00:00
|
|
|
libxml2
|
2020-08-21 20:12:22 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
perl
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2020-08-21 20:12:22 +00:00
|
|
|
python3
|
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
2022-11-11 23:08:01 +00:00
|
|
|
gtk-doc
|
2023-07-01 01:19:14 +00:00
|
|
|
gobject-introspection
|
2022-11-11 23:08:01 +00:00
|
|
|
docbook-xsl-nons
|
2019-03-03 18:37:06 +00:00
|
|
|
];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2018-03-22 18:47:02 +00:00
|
|
|
buildInputs = [
|
2022-11-11 23:08:01 +00:00
|
|
|
amtk
|
|
|
|
tepl
|
2020-08-21 20:12:22 +00:00
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gspell
|
|
|
|
gtk3
|
|
|
|
gtksourceview4
|
|
|
|
libpeas
|
|
|
|
libsoup
|
2022-04-03 09:21:59 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
gtk-mac-integration
|
2018-03-22 18:47:02 +00:00
|
|
|
];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2019-03-03 18:37:06 +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;
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2018-03-22 18:47:02 +00:00
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-22 18:47:02 +00:00
|
|
|
packageName = "gedit";
|
|
|
|
};
|
|
|
|
};
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Gedit";
|
2023-07-05 01:07:33 +00:00
|
|
|
description = "Former GNOME text editor";
|
|
|
|
maintainers = [ ];
|
2022-02-16 08:17:55 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-08 05:04:12 +00:00
|
|
|
platforms = platforms.unix;
|
2016-09-18 19:35:23 +00:00
|
|
|
};
|
|
|
|
}
|