2019-03-03 18:26:35 +00:00
|
|
|
{ stdenv
|
|
|
|
, substituteAll
|
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
|
|
|
, gnome3
|
|
|
|
, perl
|
|
|
|
, gettext
|
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, libnotify
|
|
|
|
, libgnomekbd
|
|
|
|
, lcms2
|
|
|
|
, libpulseaudio
|
|
|
|
, alsaLib
|
|
|
|
, libcanberra-gtk3
|
|
|
|
, upower
|
|
|
|
, colord
|
|
|
|
, libgweather
|
|
|
|
, polkit
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, geoclue2
|
|
|
|
, systemd
|
|
|
|
, libgudev
|
|
|
|
, libwacom
|
|
|
|
, libxslt
|
|
|
|
, libxml2
|
|
|
|
, networkmanager
|
|
|
|
, gnome-desktop
|
|
|
|
, geocode-glib
|
|
|
|
, docbook_xsl
|
|
|
|
, wrapGAppsHook
|
|
|
|
, python3
|
|
|
|
, tzdata
|
|
|
|
, nss
|
|
|
|
}:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-03 18:26:35 +00:00
|
|
|
pname = "gnome-settings-daemon";
|
|
|
|
version = "3.32.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-03-03 18:26:35 +00:00
|
|
|
url = "mirror://gnome/sources/gnome-settings-daemon/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "15w3sn9qf1zqlmk8c93kgrh2a20s62m5yfizkp21m5ylrrd07f63";
|
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
|
|
|
|
2019-03-03 18:26:35 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
perl
|
|
|
|
gettext
|
|
|
|
libxml2
|
|
|
|
libxslt
|
|
|
|
docbook_xsl
|
|
|
|
wrapGAppsHook
|
|
|
|
python3
|
|
|
|
];
|
2018-03-14 04:53:49 +00:00
|
|
|
|
2019-02-13 21:47:50 +00:00
|
|
|
buildInputs = [
|
2019-03-03 18:26:35 +00:00
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
networkmanager
|
|
|
|
libnotify
|
|
|
|
libgnomekbd # for org.gnome.libgnomekbd.keyboard schema
|
|
|
|
gnome-desktop
|
|
|
|
lcms2
|
|
|
|
libpulseaudio
|
|
|
|
alsaLib
|
|
|
|
libcanberra-gtk3
|
|
|
|
upower
|
|
|
|
colord
|
|
|
|
libgweather
|
|
|
|
nss
|
|
|
|
polkit
|
|
|
|
geocode-glib
|
|
|
|
geoclue2
|
|
|
|
systemd
|
|
|
|
libgudev
|
|
|
|
libwacom
|
2018-03-14 04:53:49 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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 {
|
2019-03-03 18:26:35 +00:00
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
2018-03-14 04:53:49 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|