2018-03-14 04:53:49 +00:00
|
|
|
{ fetchurl, substituteAll, stdenv, meson, ninja, pkgconfig, gnome3, perl, gettext, glib, libnotify, lcms2, libXtst
|
|
|
|
, libxkbfile, libpulseaudio, alsaLib, libcanberra-gtk3, upower, colord, libgweather, polkit
|
|
|
|
, geoclue2, librsvg, xf86_input_wacom, udev, libgudev, libwacom, libxslt, libxml2, networkmanager
|
2018-09-03 21:00:08 +01:00
|
|
|
, docbook_xsl, wrapGAppsHook, python3, ibus, xkeyboard_config, tzdata, nss }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 20:07:20 +00:00
|
|
|
name = "gnome-settings-daemon-${version}";
|
2018-09-05 01:47:59 +01:00
|
|
|
version = "3.30.1.2";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 01:12:11 +01:00
|
|
|
url = "mirror://gnome/sources/gnome-settings-daemon/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2018-09-05 01:47:59 +01:00
|
|
|
sha256 = "079dh609rvpwfyzg4m898q8km9g7x04hg18rwwb1izj1dr7zdp2w";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2018-03-14 04:53:49 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
inherit tzdata;
|
|
|
|
})
|
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-09-03 21:00:08 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig perl gettext libxml2 libxslt docbook_xsl wrapGAppsHook python3 ];
|
2018-03-14 04:53:49 +00:00
|
|
|
|
|
|
|
buildInputs = with gnome3; [
|
|
|
|
ibus gtk glib gsettings-desktop-schemas networkmanager
|
|
|
|
libnotify gnome-desktop lcms2 libXtst libxkbfile libpulseaudio alsaLib
|
|
|
|
libcanberra-gtk3 upower colord libgweather xkeyboard_config nss
|
|
|
|
polkit geocode-glib geoclue2 librsvg xf86_input_wacom udev libgudev libwacom
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
2018-04-26 21:59:34 +01:00
|
|
|
"-Dudev_dir=${placeholder "out"}/lib/udev"
|
2018-03-14 04:53:49 +00:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2017-11-07 13:59:18 +00:00
|
|
|
postPatch = ''
|
2018-03-14 04:53:49 +00:00
|
|
|
for f in gnome-settings-daemon/codegen.py plugins/power/gsd-power-constants-update.pl meson_post_install.py; do
|
|
|
|
chmod +x $f
|
|
|
|
patchShebangs $f
|
|
|
|
done
|
2017-11-07 13:59:18 +00:00
|
|
|
'';
|
|
|
|
|
2018-03-14 04:53:49 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "gnome-settings-daemon";
|
|
|
|
attrPath = "gnome3.gnome-settings-daemon";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
2018-03-14 04:53:49 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2016-09-18 20:35:23 +01:00
|
|
|
maintainers = gnome3.maintainers;
|
2018-03-14 04:53:49 +00:00
|
|
|
platforms = platforms.linux;
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
}
|