nixpkgs-suyu/pkgs/desktops/mate/mate-settings-daemon/default.nix
Artturin f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00

66 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.26.0";
src = fetchurl {
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0hbdwqagxh1mdpxfdqr1ps3yqvk0v0c5zm0bwk56y6l1zwbs0ymp";
};
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";
env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname; };
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 = teams.mate.members;
};
}