cinnamon.cinnamon-settings-daemon: use cinnamon-translations

This commit is contained in:
Maciej Krüger 2021-05-22 23:22:51 +02:00
parent 77c27b6715
commit 4a36512431
No known key found for this signature in database
GPG key ID: 0D948CE19CF49C5F

View file

@ -1,5 +1,6 @@
{ fetchFromGitHub
, cinnamon-desktop
, cinnamon-translations
, colord
, glib
, gsettings-desktop-schemas
@ -104,6 +105,11 @@ stdenv.mkDerivation rec {
sed "s|/usr/share/zoneinfo|${tzdata}/share/zoneinfo|g" -i plugins/datetime/system-timezone.h
'';
# use locales from cinnamon-translations (not using --localedir because datadir is used)
postInstall = ''
ln -s ${cinnamon-translations}/share/locale $out/share/locale
'';
# 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