2021-04-02 21:04:39 -04:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, gettext, itstool, libxml2, dbus-glib
|
2022-03-31 23:37:35 -04:00
|
|
|
, libxklavier, libcanberra-gtk3, librsvg, libappindicator-gtk3, glib
|
2021-04-02 21:04:39 -04:00
|
|
|
, desktop-file-utils, dconf, gtk3, polkit, mate, hicolor-icon-theme, wrapGAppsHook
|
|
|
|
, mateUpdateScript
|
2017-09-01 16:43:28 -04:00
|
|
|
}:
|
2017-08-30 23:07:11 -04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 08:41:18 -04:00
|
|
|
pname = "mate-control-center";
|
2021-08-10 14:07:55 -04:00
|
|
|
version = "1.26.0";
|
2017-08-30 23:07:11 -04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 08:21:58 -05:00
|
|
|
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-08-10 14:07:55 -04:00
|
|
|
sha256 = "0jhkn0vaz8glji4j5ar6im8l2wf40kssl07gfkz40rcgfzm18rr8";
|
2017-08-30 23:07:11 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-16 21:21:50 -05:00
|
|
|
pkg-config
|
2020-02-14 09:09:49 -05:00
|
|
|
gettext
|
2017-08-30 23:07:11 -04:00
|
|
|
itstool
|
2018-02-24 21:23:58 -05:00
|
|
|
desktop-file-utils
|
2017-08-30 23:07:11 -04:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libxml2
|
2018-02-24 21:23:58 -05:00
|
|
|
dbus-glib
|
2017-08-30 23:07:11 -04:00
|
|
|
libxklavier
|
2018-02-24 21:23:58 -05:00
|
|
|
libcanberra-gtk3
|
2017-09-01 16:22:07 -04:00
|
|
|
librsvg
|
2017-09-01 16:43:28 -04:00
|
|
|
libappindicator-gtk3
|
2019-03-09 06:41:12 -05:00
|
|
|
gtk3
|
2019-11-30 18:11:47 -05:00
|
|
|
dconf
|
2020-02-12 12:51:20 -05:00
|
|
|
polkit
|
2018-02-24 21:23:58 -05:00
|
|
|
hicolor-icon-theme
|
2017-08-30 23:07:11 -04:00
|
|
|
mate.mate-desktop
|
|
|
|
mate.libmatekbd
|
|
|
|
mate.mate-menus
|
|
|
|
mate.marco
|
|
|
|
mate.mate-settings-daemon
|
|
|
|
];
|
|
|
|
|
2018-07-25 17:44:21 -04:00
|
|
|
configureFlags = [ "--disable-update-mimedb" ];
|
2017-08-30 23:07:11 -04:00
|
|
|
|
2019-04-28 21:23:27 -04:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
# WM keyboard shortcuts
|
|
|
|
--prefix XDG_DATA_DIRS : "${mate.marco}/share"
|
2022-03-31 23:37:35 -04:00
|
|
|
# Desktop font, works only when passed after gtk3 schemas in the wrapper for some reason
|
|
|
|
--prefix XDG_DATA_DIRS : "${glib.getSchemaDataDirPath mate.caja}"
|
2019-04-28 21:23:27 -04:00
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-04-02 15:58:16 -04:00
|
|
|
passthru.updateScript = mateUpdateScript { inherit pname version; };
|
|
|
|
|
2021-01-11 02:54:33 -05:00
|
|
|
meta = with lib; {
|
2017-08-30 23:07:11 -04:00
|
|
|
description = "Utilities to configure the MATE desktop";
|
2020-02-12 12:51:20 -05:00
|
|
|
homepage = "https://github.com/mate-desktop/mate-control-center";
|
2021-04-22 09:23:43 -04:00
|
|
|
license = licenses.gpl2Plus;
|
2017-08-30 23:07:11 -04:00
|
|
|
platforms = platforms.unix;
|
2021-09-21 15:45:29 -04:00
|
|
|
maintainers = teams.mate.members;
|
2017-08-30 23:07:11 -04:00
|
|
|
};
|
|
|
|
}
|