2018-08-08 03:29:49 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libxml2, gnome3, dconf, nautilus
|
2019-02-13 22:47:50 +01:00
|
|
|
, gtk3, gsettings-desktop-schemas, vte, intltool, which, libuuid, vala
|
2019-07-14 13:40:14 +02:00
|
|
|
, desktop-file-utils, itstool, wrapGAppsHook, hicolor-icon-theme }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 21:07:20 +01:00
|
|
|
name = "gnome-terminal-${version}";
|
2019-05-16 03:12:05 +02:00
|
|
|
version = "3.32.2";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 02:12:11 +02:00
|
|
|
url = "mirror://gnome/sources/gnome-terminal/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2019-05-16 03:12:05 +02:00
|
|
|
sha256 = "0shhpnagasyp1kxgjczfrivcxbgrrl3y8lzvp1z101m67h4jp6km";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
2018-08-08 03:29:49 +02:00
|
|
|
buildInputs = [
|
2019-02-13 22:47:50 +01:00
|
|
|
gtk3 gsettings-desktop-schemas vte libuuid dconf
|
2018-08-08 03:29:49 +02:00
|
|
|
# For extension
|
|
|
|
nautilus
|
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-08-08 03:29:49 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig intltool itstool which libxml2
|
|
|
|
vala desktop-file-utils wrapGAppsHook
|
2019-07-14 13:40:14 +02:00
|
|
|
hicolor-icon-theme # for setup-hook
|
2018-08-08 03:29:49 +02:00
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
# Silly ./configure, it looks for dbus file from gnome-shell in the
|
|
|
|
# installation tree of the package it is configuring.
|
2016-10-01 11:19:20 +02:00
|
|
|
postPatch = ''
|
2018-02-25 03:23:58 +01:00
|
|
|
substituteInPlace configure --replace '$(eval echo $(eval echo $(eval echo ''${dbusinterfacedir})))/org.gnome.ShellSearchProvider2.xml' "${gnome3.gnome-shell}/share/dbus-1/interfaces/org.gnome.ShellSearchProvider2.xml"
|
|
|
|
substituteInPlace src/Makefile.in --replace '$(dbusinterfacedir)/org.gnome.ShellSearchProvider2.xml' "${gnome3.gnome-shell}/share/dbus-1/interfaces/org.gnome.ShellSearchProvider2.xml"
|
2016-09-18 21:35:23 +02:00
|
|
|
'';
|
|
|
|
|
2018-08-08 03:29:49 +02:00
|
|
|
configureFlags = [ "--disable-migration" ]; # TODO: remove this with 3.30
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "gnome-terminal";
|
|
|
|
attrPath = "gnome3.gnome-terminal";
|
|
|
|
};
|
|
|
|
};
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2016-10-02 00:04:58 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "The GNOME Terminal Emulator";
|
2018-08-08 03:29:49 +02:00
|
|
|
homepage = https://wiki.gnome.org/Apps/Terminal;
|
2016-09-18 21:35:23 +02:00
|
|
|
platforms = platforms.linux;
|
2018-08-08 03:29:49 +02:00
|
|
|
license = licenses.gpl3Plus;
|
2016-09-18 21:35:23 +02:00
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
};
|
|
|
|
}
|