libsndfile: link sndfile-play with ALSA on GNU/Linux

It otherwise falls back to OSS which no longer presents
on most installations.
This commit is contained in:
Nguyễn Gia Phong 2023-02-16 02:55:37 +09:00 committed by Sandro Jäckel
parent 1b80b55648
commit 6477516d6d
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -1,6 +1,6 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, autogen, pkg-config, python3
, flac, lame, libmpg123, libogg, libopus, libvorbis
, Carbon, AudioToolbox
, alsa-lib, Carbon, AudioToolbox
}:
stdenv.mkDerivation rec {
@ -16,6 +16,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook autogen pkg-config python3 ];
buildInputs = [ flac lame libmpg123 libogg libopus libvorbis ]
++ lib.optionals stdenv.isLinux [ alsa-lib ]
++ lib.optionals stdenv.isDarwin [ Carbon AudioToolbox ];
enableParallelBuilding = true;