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

32 lines
967 B
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, intltool, glib, mate
2017-08-31 03:55:20 +01:00
, alsaSupport ? stdenv.isLinux, alsaLib
, pulseaudioSupport ? stdenv.config.pulseaudio or true, libpulseaudio
, ossSupport ? false
}:
stdenv.mkDerivation rec {
name = "libmatemixer-${version}";
2018-02-14 01:22:51 +00:00
version = "1.20.0";
2017-08-31 03:55:20 +01:00
src = fetchurl {
url = "http://pub.mate-desktop.org/releases/${mate.getRelease version}/${name}.tar.xz";
2018-02-14 01:22:51 +00:00
sha256 = "0jpfaqbspn2mjv6ysgzdmzhb07gx61yiiiwmrw94qymld2igrzb5";
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 ];
platforms = platforms.linux;
2017-08-31 03:55:20 +01:00
maintainers = [ maintainers.romildo ];
};
}