2020-01-21 02:32:57 +01:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, autoconf-archive
|
|
|
|
, autoreconfHook
|
|
|
|
, cinnamon-desktop
|
|
|
|
, colord
|
|
|
|
, glib
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gtk3
|
|
|
|
, intltool
|
|
|
|
, lcms2
|
|
|
|
, libcanberra-gtk3
|
|
|
|
, libgnomekbd
|
|
|
|
, libnotify
|
|
|
|
, libxklavier
|
|
|
|
, wrapGAppsHook
|
|
|
|
, pkgconfig
|
|
|
|
, 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
|
2020-01-21 02:32:57 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cinnamon-settings-daemon";
|
2020-09-06 00:02:14 +02:00
|
|
|
version = "4.6.4";
|
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;
|
2020-09-06 00:02:14 +02:00
|
|
|
sha256 = "1xcjzjfwnzvkv9jiyw8adsjyhz92almzhyfwb91115774zgqnb7m";
|
2020-01-21 02:32:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./csd-backlight-helper-fix.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; # TODO: https://github.com/NixOS/nixpkgs/issues/36468
|
|
|
|
|
|
|
|
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
|
2020-01-21 02:32:57 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf-archive
|
|
|
|
autoreconfHook
|
|
|
|
wrapGAppsHook
|
|
|
|
intltool
|
|
|
|
pkgconfig
|
|
|
|
];
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|