2017-12-21 04:56:50 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, alsaLib, libjack2, libpulseaudio, AudioUnit }:
|
2015-09-04 00:56:17 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-27 22:16:14 +00:00
|
|
|
version = "2.0.0";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libsoundio";
|
2015-09-04 00:56:17 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "andrewrk";
|
|
|
|
repo = "libsoundio";
|
2019-09-09 00:38:31 +01:00
|
|
|
rev = version;
|
2019-03-27 22:16:14 +00:00
|
|
|
sha256 = "12l4rvaypv87vigdrmjz48d4d6sq4gfxf5asvnc4adyabxb73i4x";
|
2015-09-04 00:56:17 +01:00
|
|
|
};
|
|
|
|
|
2017-12-21 04:56:50 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = [ libjack2 libpulseaudio ]
|
|
|
|
++ stdenv.lib.optional stdenv.isLinux alsaLib
|
|
|
|
++ stdenv.lib.optional stdenv.isDarwin AudioUnit;
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-Wno-strict-prototypes";
|
2015-09-04 00:56:17 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Cross platform audio input and output";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://libsound.io/";
|
2015-09-04 00:56:17 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.andrewrk ];
|
|
|
|
};
|
|
|
|
}
|