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