nixpkgs/pkgs/desktops/mate/mate-control-center/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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-31 03:07:11 +00:00
stdenv.mkDerivation rec {
pname = "mate-control-center";
version = "1.26.0";
2017-08-31 03:07:11 +00:00
src = fetchurl {
2021-01-15 13:21:58 +00:00
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0jhkn0vaz8glji4j5ar6im8l2wf40kssl07gfkz40rcgfzm18rr8";
2017-08-31 03:07:11 +00:00
};
nativeBuildInputs = [
2021-01-17 02:21:50 +00:00
pkg-config
gettext
2017-08-31 03:07:11 +00:00
itstool
desktop-file-utils
2017-08-31 03:07:11 +00:00
wrapGAppsHook
];
buildInputs = [
libxml2
dbus-glib
2017-08-31 03:07:11 +00:00
libxklavier
libcanberra-gtk3
librsvg
libappindicator-gtk3
gtk3
2019-11-30 23:11:47 +00:00
dconf
polkit
hicolor-icon-theme
2017-08-31 03:07:11 +00:00
mate.mate-desktop
mate.libmatekbd
mate.mate-menus
mate.marco
mate.mate-settings-daemon
];
2018-07-25 21:44:21 +00:00
configureFlags = [ "--disable-update-mimedb" ];
2017-08-31 03:07:11 +00: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 19:58:16 +00:00
passthru.updateScript = mateUpdateScript { inherit pname version; };
meta = with lib; {
2017-08-31 03:07:11 +00:00
description = "Utilities to configure the MATE desktop";
homepage = "https://github.com/mate-desktop/mate-control-center";
2021-04-22 13:23:43 +00:00
license = licenses.gpl2Plus;
2017-08-31 03:07:11 +00:00
platforms = platforms.unix;
maintainers = teams.mate.members;
2017-08-31 03:07:11 +00:00
};
}