nixpkgs/pkgs/desktops/mate/mate-settings-daemon/default.nix
José Romildo Malaquias 7501beac87 mate: fix licenses
2021-04-22 10:29:01 -03:00

51 lines
1.3 KiB
Nix

{ lib, stdenv, fetchurl, pkg-config, gettext, glib, dbus-glib, libxklavier,
libcanberra-gtk3, libnotify, nss, polkit, dconf, gtk3, mate,
pulseaudioSupport ? stdenv.config.pulseaudio or true, libpulseaudio,
wrapGAppsHook, mateUpdateScript }:
stdenv.mkDerivation rec {
pname = "mate-settings-daemon";
version = "1.24.2";
src = fetchurl {
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "051r7xrx1byllsszbwsk646sq4izyag9yxg8jw2rm6x6mgwb89cc";
};
nativeBuildInputs = [
gettext
pkg-config
wrapGAppsHook
];
buildInputs = [
dbus-glib
libxklavier
libcanberra-gtk3
libnotify
nss
polkit
gtk3
dconf
mate.mate-desktop
mate.libmatekbd
mate.libmatemixer
] ++ lib.optional pulseaudioSupport libpulseaudio;
configureFlags = lib.optional pulseaudioSupport "--enable-pulse";
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname version; };
meta = with lib; {
description = "MATE settings daemon";
homepage = "https://github.com/mate-desktop/mate-settings-daemon";
license = with licenses; [ gpl2Plus gpl3Plus lgpl2Plus mit ];
platforms = platforms.unix;
maintainers = [ maintainers.romildo ];
};
}