2020-04-24 23:36:52 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, cinnamon-desktop
|
2021-05-28 09:39:13 +00:00
|
|
|
, cinnamon-translations
|
2020-04-24 23:36:52 +00:00
|
|
|
, colord
|
|
|
|
, glib
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gtk3
|
|
|
|
, lcms2
|
|
|
|
, libcanberra-gtk3
|
|
|
|
, libgnomekbd
|
|
|
|
, libnotify
|
|
|
|
, libxklavier
|
|
|
|
, wrapGAppsHook
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, pulseaudio
|
2021-12-06 16:07:01 +00:00
|
|
|
, lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, systemd
|
|
|
|
, upower
|
|
|
|
, dconf
|
|
|
|
, cups
|
|
|
|
, polkit
|
|
|
|
, librsvg
|
|
|
|
, libwacom
|
|
|
|
, xf86_input_wacom
|
|
|
|
, xorg
|
|
|
|
, fontconfig
|
|
|
|
, tzdata
|
2020-09-25 04:45:31 +00:00
|
|
|
, nss
|
2020-10-27 00:29:36 +00:00
|
|
|
, libgudev
|
2021-04-22 02:08:21 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, dbus
|
|
|
|
, dbus-glib
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cinnamon-settings-daemon";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "5.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
/* csd-power-manager.c:50:10: fatal error: csd-power-proxy.h: No such file or directory
|
|
|
|
#include "csd-power-proxy.h"
|
|
|
|
^~~~~~~~~~~~~~~~~~~
|
|
|
|
compilation terminated. */
|
|
|
|
|
|
|
|
# but this occurs only sometimes, so disabling parallel building
|
|
|
|
# also see https://github.com/linuxmint/cinnamon-settings-daemon/issues/248
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-12-06 16:07:01 +00:00
|
|
|
hash = "sha256-6omif4UxMrXWxL+R9lQ8ogxotW+3E9Kp99toH3PJtaU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./csd-backlight-helper-fix.patch
|
2021-04-22 02:08:21 +00:00
|
|
|
./use-sane-install-dir.patch
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-04-22 02:08:21 +00:00
|
|
|
mesonFlags = [ "-Dc_args=-I${glib.dev}/include/gio-unix-2.0" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cinnamon-desktop
|
|
|
|
colord
|
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
lcms2
|
|
|
|
libcanberra-gtk3
|
|
|
|
libgnomekbd
|
|
|
|
libnotify
|
|
|
|
libxklavier
|
|
|
|
pulseaudio
|
|
|
|
systemd
|
|
|
|
upower
|
|
|
|
dconf
|
|
|
|
cups
|
|
|
|
polkit
|
|
|
|
librsvg
|
|
|
|
libwacom
|
|
|
|
xf86_input_wacom
|
|
|
|
xorg.libXext
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libXi
|
|
|
|
xorg.libXtst
|
|
|
|
xorg.libXfixes
|
|
|
|
fontconfig
|
2020-09-25 04:45:31 +00:00
|
|
|
nss
|
2020-10-27 00:29:36 +00:00
|
|
|
libgudev
|
2021-04-22 02:08:21 +00:00
|
|
|
dbus
|
|
|
|
dbus-glib
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-04-22 02:08:21 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2020-04-24 23:36:52 +00:00
|
|
|
wrapGAppsHook
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed "s|/usr/share/zoneinfo|${tzdata}/share/zoneinfo|g" -i plugins/datetime/system-timezone.h
|
|
|
|
'';
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
# use locales from cinnamon-translations (not using --localedir because datadir is used)
|
|
|
|
postInstall = ''
|
|
|
|
ln -s ${cinnamon-translations}/share/locale $out/share/locale
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# So the polkit policy can reference /run/current-system/sw/bin/cinnamon-settings-daemon/csd-backlight-helper
|
|
|
|
postFixup = ''
|
|
|
|
mkdir -p $out/bin/cinnamon-settings-daemon
|
|
|
|
ln -s $out/libexec/csd-backlight-helper $out/bin/cinnamon-settings-daemon/csd-backlight-helper
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/linuxmint/cinnamon-settings-daemon";
|
|
|
|
description = "The settings daemon for the Cinnamon desktop";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = teams.cinnamon.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|