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:
parent
1b80b55648
commit
6477516d6d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user