2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, glib
|
|
|
|
, gettext
|
|
|
|
, cinnamon-desktop
|
|
|
|
, gtk3
|
|
|
|
, libnotify
|
|
|
|
, libxml2
|
|
|
|
, gnome-online-accounts
|
|
|
|
, colord
|
|
|
|
, polkit
|
|
|
|
, libxkbfile
|
|
|
|
, cinnamon-menus
|
|
|
|
, libgnomekbd
|
|
|
|
, libxklavier
|
|
|
|
, networkmanager
|
2022-08-12 12:06:08 +00:00
|
|
|
, libgudev
|
2020-04-24 23:36:52 +00:00
|
|
|
, libwacom
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-04-24 23:36:52 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
, tzdata
|
|
|
|
, glibc
|
|
|
|
, libnma
|
|
|
|
, modemmanager
|
|
|
|
, xorg
|
|
|
|
, gdk-pixbuf
|
2021-04-22 02:08:21 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2021-05-28 09:39:13 +00:00
|
|
|
, cinnamon-translations
|
2021-12-06 16:07:01 +00:00
|
|
|
, python3
|
2022-08-12 12:06:08 +00:00
|
|
|
, upower
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cinnamon-control-center";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "5.6.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-01-11 07:51:40 +00:00
|
|
|
hash = "sha256-rp3K7SqGw8da2U61VjKiqUyT5vCUVk4XZdRYtLwRtfQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
cinnamon-desktop
|
|
|
|
libnotify
|
|
|
|
cinnamon-menus
|
|
|
|
libxml2
|
|
|
|
polkit
|
|
|
|
libgnomekbd
|
|
|
|
libxklavier
|
|
|
|
colord
|
2022-08-12 12:06:08 +00:00
|
|
|
libgudev
|
2020-04-24 23:36:52 +00:00
|
|
|
libwacom
|
|
|
|
gnome-online-accounts
|
|
|
|
tzdata
|
|
|
|
networkmanager
|
|
|
|
libnma
|
|
|
|
modemmanager
|
|
|
|
xorg.libXxf86misc
|
|
|
|
xorg.libxkbfile
|
|
|
|
gdk-pixbuf
|
2022-08-12 12:06:08 +00:00
|
|
|
upower
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
/* ./panels/datetime/test-timezone.c:4:#define TZ_DIR "/usr/share/zoneinfo/"
|
2021-12-06 16:07:01 +00:00
|
|
|
./panels/datetime/tz.h:32:# define TZ_DATA_FILE "/usr/share/zoneinfo/zone.tab"
|
|
|
|
./panels/datetime/tz.h:34:# define TZ_DATA_FILE "/usr/share/lib/zoneinfo/tab/zone_sun.tab" */
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed 's|TZ_DIR "/usr/share/zoneinfo/"|TZ_DIR "${tzdata}/share/zoneinfo/"|g' -i ./panels/datetime/test-timezone.c
|
|
|
|
sed 's|TZ_DATA_FILE "/usr/share/zoneinfo/zone.tab"|TZ_DATA_FILE "${tzdata}/share/zoneinfo/zone.tab"|g' -i ./panels/datetime/tz.h
|
|
|
|
sed 's|"/usr/share/i18n/locales/"|"${glibc}/share/i18n/locales/"|g' -i panels/datetime/test-endianess.c
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
patchShebangs meson_install_schemas.py
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-04-22 02:08:21 +00:00
|
|
|
mesonFlags = [
|
2021-05-28 09:39:13 +00:00
|
|
|
# use locales from cinnamon-translations
|
|
|
|
"--localedir=${cinnamon-translations}/share/locale"
|
2021-04-22 02:08:21 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2021-04-22 02:08:21 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2020-04-24 23:36:52 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
gettext
|
2021-12-06 16:07:01 +00:00
|
|
|
python3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
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-control-center";
|
|
|
|
description = "A collection of configuration plugins used in cinnamon-settings";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = teams.cinnamon.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|