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
|
|
|
|
, cinnamon-settings-daemon
|
|
|
|
, 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";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "5.4.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-09-09 14:08:57 +00:00
|
|
|
hash = "sha256-38n1QCygkBq+wOLwui1oF6MtDWxAFWxp5U1omSVtbro=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
cinnamon-desktop
|
|
|
|
libnotify
|
|
|
|
cinnamon-menus
|
|
|
|
libxml2
|
|
|
|
polkit
|
|
|
|
libgnomekbd
|
|
|
|
libxklavier
|
|
|
|
colord
|
|
|
|
cinnamon-settings-daemon
|
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
|
|
|
'';
|
|
|
|
|
|
|
|
# it needs to have access to that file, otherwise we can't run tests after build
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
mkdir -p $out/share/cinnamon-control-center/
|
|
|
|
ln -s $PWD/panels/datetime $out/share/cinnamon-control-center/
|
|
|
|
'';
|
|
|
|
|
2021-04-22 02:08:21 +00:00
|
|
|
mesonFlags = [
|
2021-05-28 09:39:13 +00:00
|
|
|
# TODO: https://github.com/NixOS/nixpkgs/issues/36468
|
2021-04-22 02:08:21 +00:00
|
|
|
"-Dc_args=-I${glib.dev}/include/gio-unix-2.0"
|
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
|
|
|
preInstall = ''
|
2021-04-22 02:08:21 +00:00
|
|
|
rm -r $out
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-04-22 02:08:21 +00:00
|
|
|
# the only test is wacom-calibrator and it seems to need an xserver and prob more services aswell
|
|
|
|
doCheck = false;
|
2020-09-25 04:45:31 +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
|
|
|
};
|
|
|
|
}
|