2019-03-03 18:26:35 +00:00
|
|
|
{ stdenv
|
|
|
|
, substituteAll
|
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
|
|
|
, gnome3
|
|
|
|
, perl
|
|
|
|
, gettext
|
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, libnotify
|
|
|
|
, libgnomekbd
|
|
|
|
, lcms2
|
|
|
|
, libpulseaudio
|
2019-04-24 23:36:19 +01:00
|
|
|
, mousetweaks
|
2019-03-03 18:26:35 +00:00
|
|
|
, 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";
|
2019-06-25 18:54:31 +01:00
|
|
|
version = "3.32.1";
|
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";
|
2019-06-25 18:54:31 +01:00
|
|
|
sha256 = "02d0s0g2mmqfib44r3sf0499r08p61s8l2ndsjssbam1bi7x2dks";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2018-03-14 04:53:49 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
2019-04-24 23:36:19 +01:00
|
|
|
inherit tzdata mousetweaks;
|
2018-03-14 04:53:49 +00:00
|
|
|
})
|
2019-04-22 20:55:18 +01:00
|
|
|
./global-backlight-helper.patch
|
2018-03-14 04:53:49 +00:00
|
|
|
];
|
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
|
|
|
|
2019-08-05 11:13:01 +01:00
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
# Default for release buildtype but passed manually because
|
|
|
|
# we're using plain
|
|
|
|
"-DG_DISABLE_CAST_CHECKS"
|
|
|
|
];
|
|
|
|
|
2019-04-22 20:55:18 +01:00
|
|
|
# So the polkit policy can reference /run/current-system/sw/bin/gnome-settings-daemon/gsd-backlight-helper
|
|
|
|
postFixup = ''
|
|
|
|
mkdir -p $out/bin/gnome-settings-daemon
|
|
|
|
ln -s $out/libexec/gsd-backlight-helper $out/bin/gnome-settings-daemon/gsd-backlight-helper
|
|
|
|
'';
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|