2020-01-21 02:32:57 +01:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, cinnamon-desktop
|
2021-05-22 23:22:51 +02:00
|
|
|
, cinnamon-translations
|
2020-01-21 02:32:57 +01:00
|
|
|
, colord
|
|
|
|
, glib
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gtk3
|
|
|
|
, lcms2
|
|
|
|
, libcanberra-gtk3
|
|
|
|
, libgnomekbd
|
|
|
|
, libnotify
|
|
|
|
, libxklavier
|
|
|
|
, wrapGAppsHook
|
2021-01-17 03:21:50 +01:00
|
|
|
, pkg-config
|
2020-01-21 02:32:57 +01:00
|
|
|
, pulseaudio
|
2021-11-24 10:14:47 +01:00
|
|
|
, lib
|
|
|
|
, stdenv
|
2020-01-21 02:32:57 +01:00
|
|
|
, systemd
|
|
|
|
, upower
|
|
|
|
, dconf
|
|
|
|
, cups
|
|
|
|
, polkit
|
|
|
|
, librsvg
|
|
|
|
, libwacom
|
|
|
|
, xf86_input_wacom
|
|
|
|
, xorg
|
|
|
|
, fontconfig
|
|
|
|
, tzdata
|
2020-09-06 00:02:14 +02:00
|
|
|
, nss
|
2020-10-22 17:58:21 +02:00
|
|
|
, libgudev
|
2021-02-06 14:44:31 +01:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, dbus
|
|
|
|
, dbus-glib
|
2020-01-21 02:32:57 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cinnamon-settings-daemon";
|
2021-11-24 10:14:47 +01:00
|
|
|
version = "5.2.0";
|
2020-01-21 02:32:57 +01: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-11-24 10:14:47 +01:00
|
|
|
hash = "sha256-6omif4UxMrXWxL+R9lQ8ogxotW+3E9Kp99toH3PJtaU=";
|
2020-01-21 02:32:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./csd-backlight-helper-fix.patch
|
2021-02-06 14:44:31 +01:00
|
|
|
./use-sane-install-dir.patch
|
2020-01-21 02:32:57 +01:00
|
|
|
];
|
|
|
|
|
2021-02-06 14:44:31 +01:00
|
|
|
mesonFlags = [ "-Dc_args=-I${glib.dev}/include/gio-unix-2.0" ];
|
2020-01-21 02:32:57 +01: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-06 00:02:14 +02:00
|
|
|
nss
|
2020-10-22 17:58:21 +02:00
|
|
|
libgudev
|
2021-02-06 14:44:31 +01:00
|
|
|
dbus
|
|
|
|
dbus-glib
|
2020-01-21 02:32:57 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-06 14:44:31 +01:00
|
|
|
meson
|
|
|
|
ninja
|
2020-01-21 02:32:57 +01:00
|
|
|
wrapGAppsHook
|
2021-01-17 03:21:50 +01:00
|
|
|
pkg-config
|
2020-01-21 02:32:57 +01:00
|
|
|
];
|
|
|
|
|
2020-09-08 00:50:06 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2020-01-21 02:32:57 +01:00
|
|
|
postPatch = ''
|
|
|
|
sed "s|/usr/share/zoneinfo|${tzdata}/share/zoneinfo|g" -i plugins/datetime/system-timezone.h
|
|
|
|
'';
|
|
|
|
|
2021-05-22 23:22:51 +02:00
|
|
|
# use locales from cinnamon-translations (not using --localedir because datadir is used)
|
|
|
|
postInstall = ''
|
|
|
|
ln -s ${cinnamon-translations}/share/locale $out/share/locale
|
|
|
|
'';
|
|
|
|
|
2020-01-21 02:32:57 +01: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-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-01-21 02:32:57 +01:00
|
|
|
homepage = "https://github.com/linuxmint/cinnamon-settings-daemon";
|
|
|
|
description = "The settings daemon for the Cinnamon desktop";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2021-11-23 02:26:09 +01:00
|
|
|
maintainers = teams.cinnamon.members;
|
2020-01-21 02:32:57 +01:00
|
|
|
};
|
|
|
|
}
|