2016-09-18 20:35:23 +01:00
|
|
|
{ fetchurl, stdenv, pkgconfig, gnome3, json_glib, libcroco, intltool, libsecret
|
|
|
|
, python3Packages, libsoup, polkit, clutter, networkmanager, docbook_xsl , docbook_xsl_ns, at_spi2_core
|
|
|
|
, libstartup_notification, telepathy_glib, telepathy_logger, libXtst, p11_kit, unzip
|
2017-06-25 17:59:23 +01:00
|
|
|
, sqlite, libgweather, libcanberra_gtk3, librsvg, geoclue2
|
2016-09-18 20:35:23 +01:00
|
|
|
, libpulseaudio, libical, libtool, nss, gobjectIntrospection, gstreamer, makeWrapper
|
2017-06-25 17:59:23 +01:00
|
|
|
, accountsservice, gdk_pixbuf, gdm, upower, ibus, networkmanagerapplet }:
|
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
|
|
|
|
configureFlags = [ "--sysconfdir=/etc" ];
|
|
|
|
|
|
|
|
buildInputs = with gnome3;
|
|
|
|
[ gsettings_desktop_schemas gnome_keyring gnome-menus glib gcr json_glib accountsservice
|
2017-06-25 17:59:23 +01:00
|
|
|
libcroco intltool libsecret pkgconfig libsoup polkit libcanberra_gtk2 gdk_pixbuf
|
|
|
|
(librsvg.override { enableIntrospection = true; })
|
2016-09-18 20:35:23 +01:00
|
|
|
clutter networkmanager libstartup_notification telepathy_glib docbook_xsl docbook_xsl_ns
|
|
|
|
libXtst p11_kit networkmanagerapplet gjs mutter libpulseaudio caribou evolution_data_server
|
|
|
|
libical libtool nss gtk gstreamer makeWrapper 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-06-25 17:59:23 +01:00
|
|
|
gobjectIntrospection (stdenv.lib.getLib dconf) ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
installFlags = [ "keysdir=$(out)/share/gnome-control-center/keybindings" ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
patchShebangs src/data-to-c.pl
|
|
|
|
substituteInPlace data/Makefile --replace " install-keysDATA" ""
|
2017-06-25 17:59:23 +01: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"
|
2016-09-18 20:35:23 +01:00
|
|
|
'';
|
|
|
|
|
2017-06-25 17:59:23 +01:00
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
preFixup = with gnome3; ''
|
|
|
|
wrapProgram "$out/bin/gnome-shell" \
|
|
|
|
--prefix PATH : "${unzip}/bin" \
|
|
|
|
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
|
2017-07-24 05:24:11 +01:00
|
|
|
--prefix GIO_EXTRA_MODULES : "${stdenv.lib.getLib dconf}/lib/gio/modules" \
|
2016-09-18 20:35:23 +01:00
|
|
|
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
|
|
|
|
--prefix XDG_DATA_DIRS : "${gnome_themes_standard}/share:$out/share:$XDG_ICON_DIRS" \
|
|
|
|
--suffix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
|
|
|
|
2017-06-25 17:59:23 +01:00
|
|
|
wrapProgram "$out/bin/gnome-shell-extension-prefs" \
|
|
|
|
--prefix XDG_DATA_DIRS : "$out/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
wrapProgram "$out/libexec/gnome-shell-calendar-server" \
|
2017-07-24 05:24:11 +01:00
|
|
|
--prefix GIO_EXTRA_MODULES : "${stdenv.lib.getLib dconf}/lib/gio/modules" \
|
2016-09-18 20:35:23 +01:00
|
|
|
--prefix XDG_DATA_DIRS : "${evolution_data_server}/share:$out/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"
|
|
|
|
|
|
|
|
echo "${unzip}/bin" > $out/${passthru.mozillaPlugin}/extra-bin-path
|
|
|
|
'';
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|