nixpkgs/pkgs/applications/editors/gedit/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

101 lines
1.9 KiB
Nix
Raw Normal View History

2022-02-16 08:17:55 +00:00
{ stdenv
, lib
, meson
, fetchurl
, python3
2021-01-17 02:21:50 +00:00
, pkg-config
, gtk3
2022-04-03 09:21:59 +00:00
, gtk-mac-integration
, glib
, amtk
, tepl
, libpeas
2022-02-16 08:17:55 +00:00
, libxml2
, gtksourceview4
, gsettings-desktop-schemas
, wrapGAppsHook
, gtk-doc
2023-07-01 01:19:14 +00:00
, gobject-introspection
, docbook-xsl-nons
, ninja
, libsoup
, gnome
, gspell
, perl
, itstool
, desktop-file-utils
, vala
}:
stdenv.mkDerivation rec {
pname = "gedit";
version = "44.2";
outputs = [ "out" "devdoc" ];
src = fetchurl {
url = "mirror://gnome/sources/gedit/${lib.versions.major version}/gedit-${version}.tar.xz";
sha256 = "O7sbN3XUwnfa9UqqtEsOuDpOsfCfA5GAAEHJ5WiT7BE=";
};
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
];
nativeBuildInputs = [
desktop-file-utils
itstool
2022-02-16 08:17:55 +00:00
libxml2
meson
ninja
perl
2021-01-17 02:21:50 +00:00
pkg-config
python3
vala
wrapGAppsHook
gtk-doc
2023-07-01 01:19:14 +00:00
gobject-introspection
docbook-xsl-nons
];
2018-03-22 18:47:02 +00:00
buildInputs = [
amtk
tepl
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
];
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;
2018-03-22 18:47:02 +00:00
passthru = {
updateScript = gnome.updateScript {
2018-03-22 18:47:02 +00:00
packageName = "gedit";
};
};
meta = with lib; {
homepage = "https://wiki.gnome.org/Apps/Gedit";
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;
};
}