mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
93c62138fb
https://github.com/mate-desktop/libmatemixer/compare/v1.26.1...v1.28.0 Also enables udev support (when ALSA module is built). https://github.com/mate-desktop/libmatemixer/blob/v1.28.0/configure.ac#L196
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ config
|
|
, lib
|
|
, stdenv
|
|
, fetchurl
|
|
, pkg-config
|
|
, gettext
|
|
, glib
|
|
, alsaSupport ? stdenv.isLinux
|
|
, alsa-lib
|
|
, udev
|
|
, pulseaudioSupport ? config.pulseaudio or true
|
|
, libpulseaudio
|
|
, ossSupport ? false
|
|
, mateUpdateScript
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libmatemixer";
|
|
version = "1.28.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "XXO5Ijl/YGiOPJUw61MrzkbDDiYtsbU1L6MsQNhwoMc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
gettext
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
] ++ lib.optionals alsaSupport [
|
|
alsa-lib
|
|
udev
|
|
] ++ lib.optionals pulseaudioSupport [
|
|
libpulseaudio
|
|
];
|
|
|
|
configureFlags = lib.optional ossSupport "--enable-oss";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
passthru.updateScript = mateUpdateScript { inherit pname; };
|
|
|
|
meta = with lib; {
|
|
description = "Mixer library for MATE";
|
|
homepage = "https://github.com/mate-desktop/libmatemixer";
|
|
license = licenses.lgpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = teams.mate.members;
|
|
};
|
|
}
|