2017-10-04 22:50:14 +01:00
|
|
|
{ fetchurl, fetchpatch, stdenv, meson, ninja, pkgconfig, gnome3, json_glib, libcroco, gettext, libsecret
|
2016-09-18 20:35:23 +01:00
|
|
|
, python3Packages, libsoup, polkit, clutter, networkmanager, docbook_xsl , docbook_xsl_ns, at_spi2_core
|
2017-10-04 22:50:14 +01:00
|
|
|
, libstartup_notification, telepathy_glib, telepathy_logger, libXtst, p11_kit, unzip, glibcLocales
|
|
|
|
, sqlite, libgweather, libcanberra_gtk3, librsvg, geoclue2, perl, docbook_xml_dtd_42
|
|
|
|
, libpulseaudio, libical, nss, gobjectIntrospection, gstreamer, wrapGAppsHook
|
|
|
|
, accountsservice, gdk_pixbuf, gdm, upower, ibus, networkmanagerapplet
|
|
|
|
, gst_all_1 }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
# http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/gnome-base/gnome-shell/gnome-shell-3.10.2.1.ebuild?revision=1.3&view=markup
|
|
|
|
|
2017-02-18 11:23:00 +00:00
|
|
|
let
|
|
|
|
pythonEnv = python3Packages.python.withPackages ( ps: with ps; [ pygobject3 ] );
|
2017-06-25 17:59:23 +01:00
|
|
|
|
2017-02-18 11:23:00 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
2016-09-18 20:35:23 +01:00
|
|
|
inherit (import ./src.nix fetchurl) name src;
|
|
|
|
|
|
|
|
# Needed to find /etc/NetworkManager/VPN
|
2017-10-04 22:50:14 +01:00
|
|
|
mesonFlags = [ "--sysconfdir=/etc" ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2017-10-04 22:50:14 +01:00
|
|
|
LANG = "en_US.UTF-8";
|
|
|
|
|
2017-10-07 14:07:47 +01:00
|
|
|
nativeBuildInputs = [ meson ninja gettext docbook_xsl docbook_xsl_ns docbook_xml_dtd_42 perl wrapGAppsHook glibcLocales ];
|
2016-09-18 20:35:23 +01:00
|
|
|
buildInputs = with gnome3;
|
|
|
|
[ gsettings_desktop_schemas gnome_keyring gnome-menus glib gcr json_glib accountsservice
|
2017-10-04 22:50:14 +01:00
|
|
|
libcroco libsecret pkgconfig libsoup polkit gdk_pixbuf
|
2017-06-25 17:59:23 +01:00
|
|
|
(librsvg.override { enableIntrospection = true; })
|
2017-10-04 22:50:14 +01:00
|
|
|
clutter networkmanager libstartup_notification telepathy_glib
|
2016-09-18 20:35:23 +01:00
|
|
|
libXtst p11_kit networkmanagerapplet gjs mutter libpulseaudio caribou evolution_data_server
|
2017-10-04 22:50:14 +01:00
|
|
|
libical nss gtk gstreamer gdm
|
2017-06-25 17:59:23 +01:00
|
|
|
libcanberra_gtk3 gnome_control_center geoclue2
|
2016-09-18 20:35:23 +01:00
|
|
|
defaultIconTheme sqlite gnome3.gnome-bluetooth
|
|
|
|
libgweather # not declared at build time, but typelib is needed at runtime
|
|
|
|
gnome3.gnome-clocks # schemas needed
|
2017-02-18 11:23:00 +00:00
|
|
|
at_spi2_core upower ibus gnome_desktop telepathy_logger gnome3.gnome_settings_daemon
|
2017-10-04 22:50:14 +01:00
|
|
|
gst_all_1.gst-plugins-good # recording
|
2017-06-25 17:59:23 +01:00
|
|
|
gobjectIntrospection (stdenv.lib.getLib dconf) ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2017-10-04 22:50:14 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "0001-build-Add-missing-dependency-to-run-js-test.patch";
|
|
|
|
url = https://bug787864.bugzilla-attachments.gnome.org/attachment.cgi?id=360016;
|
|
|
|
sha256 = "1dmahd8ysbzh33rxglba0fbq127aw9h14cl2a2bw9913vjxhxijm";
|
|
|
|
})
|
|
|
|
./fix-paths.patch
|
|
|
|
];
|
|
|
|
|
2017-11-08 21:00:30 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs src/data-to-c.pl
|
2017-06-25 17:59:23 +01:00
|
|
|
|
2017-11-08 21:00:30 +00:00
|
|
|
substituteInPlace src/gnome-shell-extension-tool.in --replace "@PYTHON@" "${pythonEnv}/bin/python"
|
|
|
|
substituteInPlace src/gnome-shell-perf-tool.in --replace "@PYTHON@" "${pythonEnv}/bin/python"
|
|
|
|
substituteInPlace js/ui/extensionDownloader.js --replace "unzip" "${unzip}/bin/unzip"
|
2017-10-04 22:50:14 +01:00
|
|
|
'';
|
2017-06-25 17:59:23 +01:00
|
|
|
|
2017-10-04 22:50:14 +01:00
|
|
|
postInstall = ''
|
|
|
|
glib-compile-schemas $out/share/glib-2.0/schemas
|
|
|
|
'';
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2017-10-04 22:50:14 +01:00
|
|
|
postFixup = ''
|
|
|
|
# Patched meson does not add internal libraries to rpath
|
|
|
|
patchelf --set-rpath "$out/lib/gnome-shell:$(patchelf --print-rpath $out/bin/.gnome-shell-wrapped)" $out/bin/.gnome-shell-wrapped
|
2016-09-18 20:35:23 +01:00
|
|
|
'';
|
|
|
|
|
2016-10-01 22:57:51 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
passthru = {
|
|
|
|
mozillaPlugin = "/lib/mozilla/plugins";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|