From 6477516d6d5d6a25e975d88ac8ed2405e6b846c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Thu, 16 Feb 2023 02:55:37 +0900 Subject: [PATCH] libsndfile: link sndfile-play with ALSA on GNU/Linux It otherwise falls back to OSS which no longer presents on most installations. --- pkgs/development/libraries/libsndfile/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libsndfile/default.nix b/pkgs/development/libraries/libsndfile/default.nix index a32acb9f811..0dc795a96d8 100644 --- a/pkgs/development/libraries/libsndfile/default.nix +++ b/pkgs/development/libraries/libsndfile/default.nix @@ -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;