nixpkgs/pkgs/desktops/gnome-3/apps/gedit/default.nix

55 lines
1.5 KiB
Nix
Raw Normal View History

{ stdenv, meson, fetchurl, python3
2019-02-13 21:47:50 +00:00
, pkgconfig, gtk3, glib, adwaita-icon-theme
, libpeas, gtksourceview4, gsettings-desktop-schemas
, wrapGAppsHook, ninja, libsoup, tepl
, gnome3, gspell, perl, itstool, desktop-file-utils
}:
stdenv.mkDerivation rec {
pname = "gedit";
2020-05-03 14:14:30 +01:00
version = "3.36.2";
src = fetchurl {
url = "mirror://gnome/sources/gedit/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2020-05-03 14:14:30 +01:00
sha256 = "15s1almlhjlgl3m8lxg6jpzln8jhgdxxjr635a3b7cf58d35b1v8";
};
nativeBuildInputs = [
pkgconfig wrapGAppsHook meson ninja
python3 perl itstool desktop-file-utils
];
2018-03-22 18:47:02 +00:00
buildInputs = [
gtk3 glib
2019-02-13 21:47:50 +00:00
adwaita-icon-theme libsoup
libpeas gtksourceview4
2019-02-13 21:47:50 +00:00
gsettings-desktop-schemas gspell
tepl
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 = gnome3.updateScript {
packageName = "gedit";
attrPath = "gnome3.gedit";
};
};
meta = with stdenv.lib; {
homepage = "https://wiki.gnome.org/Apps/Gedit";
description = "Official text editor of the GNOME desktop environment";
maintainers = teams.gnome.members;
license = licenses.gpl2;
2020-04-08 06:04:12 +01:00
platforms = platforms.unix;
};
}