3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/mate/mate-settings-daemon/default.nix

56 lines
1.5 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, intltool, glib, dbus-glib, libxklavier,
2019-11-30 23:11:47 +00:00
libcanberra-gtk3, libnotify, nss, polkit, dconf, gtk3, mate,
pulseaudioSupport ? stdenv.config.pulseaudio or true, libpulseaudio,
wrapGAppsHook, fetchpatch, autoreconfHook }:
2017-08-31 04:03:41 +01:00
stdenv.mkDerivation rec {
pname = "mate-settings-daemon";
version = "1.22.1";
2017-08-31 04:03:41 +01:00
src = fetchurl {
url = "http://pub.mate-desktop.org/releases/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0idw02z0iig0pfxvlhc4dq4sr7kl1w50xscvg0jzzswnxid2l4ip";
2017-08-31 04:03:41 +01:00
};
patches = [
# Don't use etc/dbus-1/system.d
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/mate-desktop/mate-settings-daemon/pull/296.patch";
sha256 = "00dfn8h47zw3wr7yya82vvp19wsw51whn8jwgayn4hkjd161s9nm";
})
];
2017-08-31 04:03:41 +01:00
nativeBuildInputs = [
autoreconfHook # drop with the above patch
2017-08-31 04:03:41 +01:00
intltool
pkgconfig
2017-08-31 04:03:41 +01:00
wrapGAppsHook
];
buildInputs = [
dbus-glib
2017-08-31 04:03:41 +01:00
libxklavier
libcanberra-gtk3
2017-08-31 04:03:41 +01:00
libnotify
nss
polkit
gtk3
2019-11-30 23:11:47 +00:00
dconf
2017-08-31 04:03:41 +01:00
mate.mate-desktop
mate.libmatekbd
mate.libmatemixer
] ++ stdenv.lib.optional pulseaudioSupport libpulseaudio;
configureFlags = stdenv.lib.optional pulseaudioSupport "--enable-pulse";
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
2017-08-31 04:03:41 +01:00
meta = with stdenv.lib; {
description = "MATE settings daemon";
homepage = https://github.com/mate-desktop/mate-settings-daemon;
license = with licenses; [ gpl2 lgpl21 ];
platforms = platforms.unix;
maintainers = [ maintainers.romildo ];
};
}