1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/pkgs/desktops/gnome-3/apps/gedit/default.nix
Tor Hedin Brønner 545e2891a7
gnome3.gedit: 3.34.1 -> 3.36.0
- No longer depends on libxml
- tepl is a new dependency  (which should probably propagate amtk)
2020-03-24 07:10:50 +01:00

55 lines
1.5 KiB
Nix

{ stdenv, meson, fetchurl, python3
, 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";
version = "3.36.0";
src = fetchurl {
url = "mirror://gnome/sources/gedit/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0dclapyghbkg15cjcf6nljcyy4980ipjw1m3mbqpmnz9lh9dv0y9";
};
nativeBuildInputs = [
pkgconfig wrapGAppsHook meson ninja
python3 perl itstool desktop-file-utils
];
buildInputs = [
gtk3 glib
adwaita-icon-theme libsoup
libpeas gtksourceview4
gsettings-desktop-schemas gspell
tepl
];
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 = {
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 = gnome3.maintainers;
license = licenses.gpl2;
platforms = platforms.linux;
};
}