2018-02-13 23:44:07 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, glib, mate
|
2017-08-31 04:55:20 +02:00
|
|
|
, alsaSupport ? stdenv.isLinux, alsaLib
|
|
|
|
, pulseaudioSupport ? stdenv.config.pulseaudio or true, libpulseaudio
|
|
|
|
, ossSupport ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libmatemixer-${version}";
|
2018-06-19 16:39:46 +02:00
|
|
|
version = "1.20.1";
|
2017-08-31 04:55:20 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-02-13 23:44:07 +01:00
|
|
|
url = "http://pub.mate-desktop.org/releases/${mate.getRelease version}/${name}.tar.xz";
|
2018-06-19 16:39:46 +02:00
|
|
|
sha256 = "00p67mi0flsbgn15qpwq60rzf917s5islbmhirbvz6npcvv0d493";
|
2017-08-31 04:55:20 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig intltool ];
|
|
|
|
|
|
|
|
buildInputs = [ glib ]
|
|
|
|
++ stdenv.lib.optional alsaSupport alsaLib
|
|
|
|
++ stdenv.lib.optional pulseaudioSupport libpulseaudio;
|
|
|
|
|
|
|
|
configureFlags = stdenv.lib.optional ossSupport "--enable-oss";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Mixer library for MATE";
|
|
|
|
homepage = https://github.com/mate-desktop/libmatemixer;
|
|
|
|
license = with licenses; [ gpl2 lgpl2 ];
|
2017-09-22 20:03:17 +02:00
|
|
|
platforms = platforms.linux;
|
2017-08-31 04:55:20 +02:00
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|