1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/pkgs/desktops/mate/mate-control-center/default.nix

65 lines
1.6 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkg-config, gettext, itstool, libxml2, dbus-glib
, libxklavier, libcanberra-gtk3, librsvg, libappindicator-gtk3, glib
, desktop-file-utils, dconf, gtk3, polkit, mate, hicolor-icon-theme, wrapGAppsHook
, mateUpdateScript
}:
2017-08-30 23:07:11 -04:00
stdenv.mkDerivation rec {
pname = "mate-control-center";
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";
sha256 = "0jhkn0vaz8glji4j5ar6im8l2wf40kssl07gfkz40rcgfzm18rr8";
2017-08-30 23:07:11 -04:00
};
nativeBuildInputs = [
2021-01-16 21:21:50 -05:00
pkg-config
gettext
2017-08-30 23:07:11 -04:00
itstool
desktop-file-utils
2017-08-30 23:07:11 -04:00
wrapGAppsHook
];
buildInputs = [
libxml2
dbus-glib
2017-08-30 23:07:11 -04:00
libxklavier
libcanberra-gtk3
librsvg
libappindicator-gtk3
gtk3
2019-11-30 18:11:47 -05:00
dconf
polkit
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
preFixup = ''
gappsWrapperArgs+=(
# WM keyboard shortcuts
--prefix XDG_DATA_DIRS : "${mate.marco}/share"
# Desktop font, works only when passed after gtk3 schemas in the wrapper for some reason
--prefix XDG_DATA_DIRS : "${glib.getSchemaDataDirPath mate.caja}"
)
'';
enableParallelBuilding = true;
2021-04-02 15:58:16 -04:00
passthru.updateScript = mateUpdateScript { inherit pname version; };
meta = with lib; {
2017-08-30 23:07:11 -04:00
description = "Utilities to configure the MATE desktop";
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;
maintainers = teams.mate.members;
2017-08-30 23:07:11 -04:00
};
}