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-01-11 08:54:33 +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-02-06 14:44:31 +01:00
|
|
|
version = "4.8.5";
|
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-02-08 12:50:38 +01:00
|
|
|
hash = "sha256-PAWVTjGFs8yKXgNQ2ucDnEDS+n7bp2n3lhGl9gHXfdQ=";
|
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;
|
|
|
|
maintainers = [ maintainers.mkg20001 ];
|
|
|
|
};
|
|
|
|
}
|