2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2020-01-22 22:56:27 +01:00
|
|
|
, fetchFromGitHub
|
2021-01-17 03:21:50 +01:00
|
|
|
, pkg-config
|
2020-01-22 22:56:27 +01:00
|
|
|
, autoreconfHook
|
|
|
|
, glib
|
|
|
|
, gettext
|
|
|
|
, cinnamon-desktop
|
|
|
|
, intltool
|
|
|
|
, gtk3
|
|
|
|
, libnotify
|
|
|
|
, libxml2
|
2020-03-16 02:59:00 +01:00
|
|
|
, gnome-online-accounts
|
2020-01-22 22:56:27 +01:00
|
|
|
, cinnamon-settings-daemon
|
|
|
|
, colord
|
|
|
|
, polkit
|
|
|
|
, libxkbfile
|
|
|
|
, cinnamon-menus
|
|
|
|
, dbus-glib
|
|
|
|
, libgnomekbd
|
|
|
|
, libxklavier
|
|
|
|
, networkmanager
|
|
|
|
, libwacom
|
|
|
|
, libtool
|
|
|
|
, wrapGAppsHook
|
|
|
|
, tzdata
|
|
|
|
, glibc
|
2020-03-16 01:32:39 +01:00
|
|
|
, libnma
|
2020-01-22 22:56:27 +01:00
|
|
|
, modemmanager
|
|
|
|
, xorg
|
|
|
|
, gdk-pixbuf
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cinnamon-control-center";
|
2020-11-17 07:42:48 +01:00
|
|
|
version = "4.6.2";
|
2020-01-22 22:56:27 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-11-17 07:42:48 +01:00
|
|
|
sha256 = "0fbgi2r2xikpa04k431qq9akngi9akyflq1kcks8f095qs5gsana";
|
2020-01-22 22:56:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
cinnamon-desktop
|
|
|
|
libnotify
|
|
|
|
cinnamon-menus
|
|
|
|
libxml2
|
|
|
|
dbus-glib
|
|
|
|
polkit
|
|
|
|
libgnomekbd
|
|
|
|
libxklavier
|
|
|
|
colord
|
|
|
|
cinnamon-settings-daemon
|
|
|
|
libwacom
|
2020-03-16 02:59:00 +01:00
|
|
|
gnome-online-accounts
|
2020-01-22 22:56:27 +01:00
|
|
|
tzdata
|
|
|
|
networkmanager
|
2020-03-16 01:32:39 +01:00
|
|
|
libnma
|
2020-01-22 22:56:27 +01:00
|
|
|
modemmanager
|
|
|
|
xorg.libXxf86misc
|
|
|
|
xorg.libxkbfile
|
|
|
|
gdk-pixbuf
|
|
|
|
];
|
|
|
|
|
|
|
|
/* ./panels/datetime/test-timezone.c:4:#define TZ_DIR "/usr/share/zoneinfo/"
|
|
|
|
./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" */
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ./autogen.sh
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
autoreconfPhase = ''
|
|
|
|
NOCONFIGURE=1 bash ./autogen.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
# 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/
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
rm -rfv $out
|
|
|
|
'';
|
|
|
|
|
2020-09-05 22:38:06 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
2020-01-22 22:56:27 +01:00
|
|
|
nativeBuildInputs = [
|
2021-01-17 03:21:50 +01:00
|
|
|
pkg-config
|
2020-01-22 22:56:27 +01:00
|
|
|
autoreconfHook
|
|
|
|
wrapGAppsHook
|
|
|
|
gettext
|
|
|
|
intltool
|
|
|
|
libtool
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-01-22 22:56:27 +01: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-06 00:40:47 +02:00
|
|
|
maintainers = teams.cinnamon.members;
|
2020-01-22 22:56:27 +01:00
|
|
|
};
|
|
|
|
}
|