2019-04-21 16:40:55 +01:00
|
|
|
{ config, stdenv, fetchurl, pkgconfig, intltool, glib
|
2017-08-31 03:55:20 +01:00
|
|
|
, alsaSupport ? stdenv.isLinux, alsaLib
|
2019-03-14 13:25:29 +00:00
|
|
|
, pulseaudioSupport ? config.pulseaudio or true, libpulseaudio
|
2017-08-31 03:55:20 +01:00
|
|
|
, ossSupport ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libmatemixer";
|
2019-04-21 13:02:45 +01:00
|
|
|
version = "1.22.0";
|
2017-08-31 03:55:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "http://pub.mate-desktop.org/releases/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-04-21 13:02:45 +01:00
|
|
|
sha256 = "1v0gpr55gj4mj8hzxbhgzrmhaxvs2inxhsmirvjw39sc7iplvrh9";
|
2017-08-31 03:55:20 +01: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 19:03:17 +01:00
|
|
|
platforms = platforms.linux;
|
2017-08-31 03:55:20 +01:00
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|