2021-11-29 16:34:50 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-01-22 21:56:27 +00:00
|
|
|
, fetchFromGitHub
|
2021-01-17 02:21:50 +00:00
|
|
|
, pkg-config
|
2020-01-22 21:56:27 +00:00
|
|
|
, glib
|
2024-02-14 03:38:14 +00:00
|
|
|
, glib-networking
|
2020-01-22 21:56:27 +00:00
|
|
|
, gettext
|
|
|
|
, cinnamon-desktop
|
|
|
|
, gtk3
|
|
|
|
, libnotify
|
|
|
|
, libxml2
|
|
|
|
, colord
|
|
|
|
, polkit
|
|
|
|
, libxkbfile
|
|
|
|
, cinnamon-menus
|
|
|
|
, libgnomekbd
|
|
|
|
, libxklavier
|
|
|
|
, networkmanager
|
2022-08-10 06:49:14 +01:00
|
|
|
, libgudev
|
2020-01-22 21:56:27 +00:00
|
|
|
, libwacom
|
2024-04-26 21:24:03 +01:00
|
|
|
, wrapGAppsHook3
|
2020-01-22 21:56:27 +00:00
|
|
|
, tzdata
|
|
|
|
, glibc
|
2020-03-16 00:32:39 +00:00
|
|
|
, libnma
|
2020-01-22 21:56:27 +00:00
|
|
|
, modemmanager
|
|
|
|
, xorg
|
|
|
|
, gdk-pixbuf
|
2021-02-06 13:44:50 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2021-05-22 22:22:13 +01:00
|
|
|
, cinnamon-translations
|
2021-11-24 09:13:40 +00:00
|
|
|
, python3
|
2022-07-18 05:49:19 +01:00
|
|
|
, upower
|
2020-01-22 21:56:27 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cinnamon-control-center";
|
2024-06-25 14:41:00 +01:00
|
|
|
version = "6.2.0";
|
2020-01-22 21:56:27 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-06-25 14:41:00 +01:00
|
|
|
hash = "sha256-Blod69RzPTE3DztRo0PK0MKCE+vq0HWrcJcC/1e8eRI=";
|
2020-01-22 21:56:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
glib
|
2024-02-14 03:38:14 +00:00
|
|
|
glib-networking
|
2020-01-22 21:56:27 +00:00
|
|
|
cinnamon-desktop
|
|
|
|
libnotify
|
|
|
|
cinnamon-menus
|
|
|
|
libxml2
|
|
|
|
polkit
|
|
|
|
libgnomekbd
|
|
|
|
libxklavier
|
|
|
|
colord
|
2022-08-10 06:49:14 +01:00
|
|
|
libgudev
|
2020-01-22 21:56:27 +00:00
|
|
|
libwacom
|
|
|
|
tzdata
|
|
|
|
networkmanager
|
2020-03-16 00:32:39 +00:00
|
|
|
libnma
|
2020-01-22 21:56:27 +00:00
|
|
|
modemmanager
|
|
|
|
xorg.libXxf86misc
|
|
|
|
xorg.libxkbfile
|
|
|
|
gdk-pixbuf
|
2022-07-18 05:49:19 +01:00
|
|
|
upower
|
2020-01-22 21:56:27 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
/* ./panels/datetime/test-timezone.c:4:#define TZ_DIR "/usr/share/zoneinfo/"
|
2021-11-29 16:34:50 +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-01-22 21:56:27 +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-11-24 09:13:40 +00:00
|
|
|
|
|
|
|
patchShebangs meson_install_schemas.py
|
2020-01-22 21:56:27 +00:00
|
|
|
'';
|
|
|
|
|
2021-02-06 13:44:50 +00:00
|
|
|
mesonFlags = [
|
2021-05-22 22:22:13 +01:00
|
|
|
# use locales from cinnamon-translations
|
|
|
|
"--localedir=${cinnamon-translations}/share/locale"
|
2021-02-06 13:44:50 +00:00
|
|
|
];
|
|
|
|
|
2020-01-22 21:56:27 +00:00
|
|
|
nativeBuildInputs = [
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2021-02-06 13:44:50 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2024-04-26 21:24:03 +01:00
|
|
|
wrapGAppsHook3
|
2020-01-22 21:56:27 +00:00
|
|
|
gettext
|
2021-11-24 09:13:40 +00:00
|
|
|
python3
|
2020-01-22 21:56:27 +00:00
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-01-22 21:56:27 +00:00
|
|
|
homepage = "https://github.com/linuxmint/cinnamon-control-center";
|
|
|
|
description = "Collection of configuration plugins used in cinnamon-settings";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "cinnamon-control-center";
|
2020-01-22 21:56:27 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2020-09-05 23:40:47 +01:00
|
|
|
maintainers = teams.cinnamon.members;
|
2020-01-22 21:56:27 +00:00
|
|
|
};
|
|
|
|
}
|