nixpkgs/pkgs/desktops/mate/libmatemixer/default.nix

34 lines
1012 B
Nix
Raw Normal View History

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