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