1 { lib, stdenv, fetchFromGitHub, cmake, alsa-lib, libjack2, libpulseaudio, AudioUnit }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "12l4rvaypv87vigdrmjz48d4d6sq4gfxf5asvnc4adyabxb73i4x";
14 nativeBuildInputs = [ cmake ];
16 buildInputs = [ libjack2 ]
17 ++ lib.optionals stdenv.isLinux [ libpulseaudio alsa-lib ]
18 ++ lib.optional stdenv.isDarwin AudioUnit;
20 cmakeFlags = lib.optionals stdenv.isDarwin [
24 NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-strict-prototypes";
27 description = "Cross platform audio input and output";
28 homepage = "http://libsound.io/";
29 license = licenses.mit;
30 platforms = platforms.unix;
31 maintainers = [ maintainers.andrewrk ];