2020-02-14 15:09:49 +01:00
|
|
|
{ config, stdenv, fetchurl, pkgconfig, gettext, glib
|
2017-08-31 04:55:20 +02:00
|
|
|
, alsaSupport ? stdenv.isLinux, alsaLib
|
2019-03-14 14:25:29 +01:00
|
|
|
, pulseaudioSupport ? config.pulseaudio or true, libpulseaudio
|
2017-08-31 04:55:20 +02:00
|
|
|
, ossSupport ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "libmatemixer";
|
2020-02-12 18:51:19 +01:00
|
|
|
version = "1.24.0";
|
2017-08-31 04:55:20 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-12-13 23:37:37 +01:00
|
|
|
url = "https://pub.mate-desktop.org/releases/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-02-12 18:51:19 +01:00
|
|
|
sha256 = "08vkdp2kzy27xwscwp2jj5nz0yblrka2482l6cx3wl4dnk0rpznm";
|
2017-08-31 04:55:20 +02:00
|
|
|
};
|
|
|
|
|
2020-02-14 15:09:49 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig gettext ];
|
2017-08-31 04:55:20 +02:00
|
|
|
|
|
|
|
buildInputs = [ glib ]
|
|
|
|
++ stdenv.lib.optional alsaSupport alsaLib
|
|
|
|
++ stdenv.lib.optional pulseaudioSupport libpulseaudio;
|
|
|
|
|
|
|
|
configureFlags = stdenv.lib.optional ossSupport "--enable-oss";
|
|
|
|
|
2020-02-14 22:52:51 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-08-31 04:55:20 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Mixer library for MATE";
|
2020-02-12 18:51:19 +01:00
|
|
|
homepage = "https://github.com/mate-desktop/libmatemixer";
|
2017-08-31 04:55:20 +02:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|