2021-01-15 22:18:51 +00:00
|
|
|
{ config, lib, stdenv, fetchurl, pkgconfig, gettext, glib
|
2020-04-24 23:36:52 +00:00
|
|
|
, alsaSupport ? stdenv.isLinux, alsaLib
|
|
|
|
, pulseaudioSupport ? config.pulseaudio or true, libpulseaudio
|
|
|
|
, ossSupport ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libmatemixer";
|
2020-10-07 09:15:18 +00:00
|
|
|
version = "1.24.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-17 00:15:33 +00:00
|
|
|
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-10-07 09:15:18 +00:00
|
|
|
sha256 = "1n6rq7k66zvfd6sb7h92xihh021w9hysfa4yd1mzjcbb7c62ybqx";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig gettext ];
|
|
|
|
|
|
|
|
buildInputs = [ glib ]
|
2021-01-17 00:15:33 +00:00
|
|
|
++ lib.optional alsaSupport alsaLib
|
|
|
|
++ lib.optional pulseaudioSupport libpulseaudio;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
configureFlags = lib.optional ossSupport "--enable-oss";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Mixer library for MATE";
|
|
|
|
homepage = "https://github.com/mate-desktop/libmatemixer";
|
|
|
|
license = with licenses; [ gpl2 lgpl2 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|