3
0
Fork 0
forked from mirrors/nixpkgs

cinnamon.cinnamon-control-center: 4.6.2 -> 4.8.2

This commit is contained in:
Maciej Krüger 2021-02-06 14:44:50 +01:00
parent fd5331d9a6
commit 1795c727ec
No known key found for this signature in database
GPG key ID: 0D948CE19CF49C5F

View file

@ -1,11 +1,9 @@
{ lib, stdenv
, fetchFromGitHub
, pkg-config
, autoreconfHook
, glib
, gettext
, cinnamon-desktop
, intltool
, gtk3
, libnotify
, libxml2
@ -20,7 +18,7 @@
, libxklavier
, networkmanager
, libwacom
, libtool
, gnome3
, wrapGAppsHook
, tzdata
, glibc
@ -28,17 +26,19 @@
, modemmanager
, xorg
, gdk-pixbuf
, meson
, ninja
}:
stdenv.mkDerivation rec {
pname = "cinnamon-control-center";
version = "4.6.2";
version = "4.8.2";
src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
sha256 = "0fbgi2r2xikpa04k431qq9akngi9akyflq1kcks8f095qs5gsana";
sha256 = "sha256-vALThDY0uN9bV7b1fga3MK7b2/l5uL33+B2x6oSLPRE=";
};
buildInputs = [
@ -70,16 +70,11 @@ stdenv.mkDerivation rec {
./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 = ''
@ -87,19 +82,23 @@ stdenv.mkDerivation rec {
ln -s $PWD/panels/datetime $out/share/cinnamon-control-center/
'';
mesonFlags = [
"-Dc_args=-I${glib.dev}/include/gio-unix-2.0"
];
preInstall = ''
rm -rfv $out
rm -r $out
'';
doCheck = true;
# the only test is wacom-calibrator and it seems to need an xserver and prob more services aswell
doCheck = false;
nativeBuildInputs = [
pkg-config
autoreconfHook
meson
ninja
wrapGAppsHook
gettext
intltool
libtool
];
meta = with lib; {