3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/mate/libmatemixer/default.nix

32 lines
980 B
Nix
Raw Normal View History

{ config, stdenv, fetchurl, pkgconfig, gettext, glib
2017-08-31 03:55:20 +01:00
, alsaSupport ? stdenv.isLinux, alsaLib
, pulseaudioSupport ? config.pulseaudio or true, libpulseaudio
2017-08-31 03:55:20 +01:00
, ossSupport ? false
}:
stdenv.mkDerivation rec {
pname = "libmatemixer";
2020-02-12 17:51:19 +00:00
version = "1.24.0";
2017-08-31 03:55:20 +01:00
src = fetchurl {
url = "https://pub.mate-desktop.org/releases/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2020-02-12 17:51:19 +00:00
sha256 = "08vkdp2kzy27xwscwp2jj5nz0yblrka2482l6cx3wl4dnk0rpznm";
2017-08-31 03:55:20 +01:00
};
nativeBuildInputs = [ pkgconfig gettext ];
2017-08-31 03:55:20 +01:00
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";
2020-02-12 17:51:19 +00:00
homepage = "https://github.com/mate-desktop/libmatemixer";
2017-08-31 03:55:20 +01:00
license = with licenses; [ gpl2 lgpl2 ];
platforms = platforms.linux;
2017-08-31 03:55:20 +01:00
maintainers = [ maintainers.romildo ];
};
}