2019-12-08 01:04:58 +00:00
|
|
|
{ stdenv
|
|
|
|
, substituteAll
|
2019-03-15 20:30:00 +00:00
|
|
|
, fetchurl
|
2019-12-08 01:04:58 +00:00
|
|
|
, fetchgit
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
2019-03-15 20:30:00 +00:00
|
|
|
, gnome3
|
2019-12-08 01:04:58 +00:00
|
|
|
, perl
|
|
|
|
, gettext
|
2019-03-15 20:30:00 +00:00
|
|
|
, gtk3
|
2019-12-08 01:04:58 +00:00
|
|
|
, glib
|
|
|
|
, libnotify
|
|
|
|
, libgnomekbd
|
2019-03-15 20:30:00 +00:00
|
|
|
, lcms2
|
2019-12-08 01:04:58 +00:00
|
|
|
, libpulseaudio
|
|
|
|
, alsaLib
|
2019-03-15 20:30:00 +00:00
|
|
|
, libcanberra-gtk3
|
2019-12-08 01:04:58 +00:00
|
|
|
, upower
|
|
|
|
, colord
|
2019-03-15 20:30:00 +00:00
|
|
|
, libgweather
|
2019-12-08 01:04:58 +00:00
|
|
|
, polkit
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, geoclue2
|
|
|
|
, systemd
|
|
|
|
, libgudev
|
2019-03-15 20:30:00 +00:00
|
|
|
, libwacom
|
|
|
|
, libxslt
|
2019-12-08 01:04:58 +00:00
|
|
|
, libxml2
|
|
|
|
, modemmanager
|
2019-03-15 20:30:00 +00:00
|
|
|
, networkmanager
|
2019-12-08 01:04:58 +00:00
|
|
|
, gnome-desktop
|
|
|
|
, geocode-glib
|
|
|
|
, docbook_xsl
|
|
|
|
, accountsservice
|
|
|
|
, wrapGAppsHook
|
2019-03-15 20:30:00 +00:00
|
|
|
, python3
|
|
|
|
, tzdata
|
2019-12-08 01:04:58 +00:00
|
|
|
, nss
|
|
|
|
, gcr
|
|
|
|
, pantheon
|
2019-03-15 20:30:00 +00:00
|
|
|
}:
|
2018-08-20 21:31:18 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "elementary-settings-daemon";
|
2020-04-06 03:47:03 +01:00
|
|
|
version = "3.34.1";
|
2019-03-15 20:30:00 +00:00
|
|
|
|
2019-08-05 23:41:32 +01:00
|
|
|
repoName = "gnome-settings-daemon";
|
2018-08-20 21:31:18 +01:00
|
|
|
|
2020-04-06 03:47:03 +01:00
|
|
|
src = fetchgit {
|
2019-08-05 23:41:32 +01:00
|
|
|
url = "https://git.launchpad.net/~ubuntu-desktop/ubuntu/+source/${repoName}";
|
2020-04-06 03:47:03 +01:00
|
|
|
rev = "refs/tags/ubuntu/${version}-1ubuntu2";
|
|
|
|
sha256 = "0w0dsbzif7v0gk61rs9g20ldlimbdwb5yvlfdc568yyx5z643jbv";
|
2018-08-20 21:31:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# We've omitted the 53_sync_input_sources_to_accountsservice patch because it breaks the build.
|
|
|
|
# See: https://gist.github.com/worldofpeace/2f152a20b7c47895bb93239fce1c9f52
|
|
|
|
#
|
|
|
|
# Also omit ubuntu_calculator_snap.patch as that's obviously not useful here.
|
2020-04-06 03:47:03 +01:00
|
|
|
patches = let patchPath = "${src}/debian/patches"; in [
|
2018-08-20 21:31:18 +01:00
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
2019-12-08 01:04:58 +00:00
|
|
|
inherit tzdata;
|
2018-08-20 21:31:18 +01:00
|
|
|
})
|
2020-04-06 03:47:03 +01:00
|
|
|
./global-backlight-helper.patch
|
2018-08-20 21:31:18 +01:00
|
|
|
"${patchPath}/45_suppress-printer-may-not-be-connected-notification.patch"
|
2019-12-08 01:04:58 +00:00
|
|
|
#"${patchPath}/53_sync_input_sources_to_accountsservice.patch"
|
2018-08-20 21:31:18 +01:00
|
|
|
"${patchPath}/64_restore_terminal_keyboard_shortcut_schema.patch"
|
|
|
|
"${patchPath}/correct_logout_action.patch"
|
|
|
|
"${patchPath}/ubuntu-lid-close-suspend.patch"
|
|
|
|
"${patchPath}/revert-gsettings-removals.patch"
|
|
|
|
"${patchPath}/revert-mediakeys-dbus-interface-drop.patch"
|
2019-12-08 01:04:58 +00:00
|
|
|
#"${patchPath}/ubuntu_ibus_configs.patch"
|
|
|
|
# https://github.com/elementary/os-patches/blob/6975d1c254cb6ab913b8e2396877203aea8eaa65/debian/patches/elementary-dpms.patch
|
|
|
|
./elementary-dpms.patch
|
2018-08-20 21:31:18 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
2019-12-08 01:04:58 +00:00
|
|
|
perl
|
|
|
|
gettext
|
|
|
|
libxml2
|
|
|
|
libxslt
|
|
|
|
docbook_xsl
|
2018-08-20 21:31:18 +01:00
|
|
|
wrapGAppsHook
|
2019-12-08 01:04:58 +00:00
|
|
|
python3
|
2018-08-20 21:31:18 +01:00
|
|
|
];
|
|
|
|
|
2019-02-13 21:47:50 +00:00
|
|
|
buildInputs = [
|
2018-08-20 21:31:18 +01:00
|
|
|
accountsservice
|
|
|
|
alsaLib
|
|
|
|
colord
|
2019-12-08 01:04:58 +00:00
|
|
|
gcr
|
2018-08-20 21:31:18 +01:00
|
|
|
geoclue2
|
|
|
|
geocode-glib
|
|
|
|
glib
|
2019-12-08 01:04:58 +00:00
|
|
|
gnome-desktop
|
2019-03-15 20:30:00 +00:00
|
|
|
gsettings-desktop-schemas
|
2019-02-13 21:47:50 +00:00
|
|
|
gtk3
|
2018-08-20 21:31:18 +01:00
|
|
|
lcms2
|
|
|
|
libcanberra-gtk3
|
2019-03-15 20:30:00 +00:00
|
|
|
libgnomekbd # for org.gnome.libgnomekbd.keyboard schema
|
2018-08-20 21:31:18 +01:00
|
|
|
libgudev
|
|
|
|
libgweather
|
|
|
|
libnotify
|
|
|
|
libpulseaudio
|
|
|
|
libwacom
|
2019-12-08 01:04:58 +00:00
|
|
|
modemmanager
|
2018-08-20 21:31:18 +01:00
|
|
|
networkmanager
|
|
|
|
nss
|
|
|
|
polkit
|
2019-03-15 20:30:00 +00:00
|
|
|
systemd
|
2018-08-20 21:31:18 +01:00
|
|
|
upower
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dudev_dir=${placeholder "out"}/lib/udev"
|
|
|
|
];
|
|
|
|
|
2019-08-04 14:50:13 +01:00
|
|
|
# Default for release buildtype but passed manually because
|
|
|
|
# we're using plain
|
2019-10-30 11:34:47 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-DG_DISABLE_CAST_CHECKS";
|
2019-08-04 14:50:13 +01:00
|
|
|
|
2019-12-08 01:04:58 +00:00
|
|
|
postPatch = ''
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
2020-04-06 03:47:03 +01:00
|
|
|
# So the polkit policy can reference /run/current-system/sw/bin/elementary-settings-daemon/gsd-backlight-helper
|
|
|
|
mkdir -p $out/bin/elementary-settings-daemon
|
|
|
|
ln -s $out/libexec/gsd-backlight-helper $out/bin/elementary-settings-daemon/gsd-backlight-helper
|
2019-12-08 01:04:58 +00:00
|
|
|
'';
|
|
|
|
|
2019-03-15 20:30:00 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
2019-08-05 23:41:32 +01:00
|
|
|
packageName = repoName;
|
2019-03-15 20:30:00 +00:00
|
|
|
attrPath = "pantheon.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-08-20 21:31:18 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = pantheon.maintainers;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|