blob: c4b5016282723185727febd5e7c496b4f0dd0ded (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ lib, stdenv, fetchFromGitHub, cmake, alsa-lib, libjack2, libpulseaudio, AudioUnit }:
stdenv.mkDerivation rec {
version = "2.0.0";
pname = "libsoundio";
src = fetchFromGitHub {
owner = "andrewrk";
repo = "libsoundio";
rev = version;
sha256 = "12l4rvaypv87vigdrmjz48d4d6sq4gfxf5asvnc4adyabxb73i4x";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libjack2 ]
++ lib.optionals stdenv.hostPlatform.isLinux [ libpulseaudio alsa-lib ]
++ lib.optional stdenv.hostPlatform.isDarwin AudioUnit;
cmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [
"-DBUILD_TESTS=OFF"
];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-Wno-strict-prototypes";
meta = with lib; {
description = "Cross platform audio input and output";
homepage = "http://libsound.io/";
license = licenses.mit;
platforms = platforms.unix;
maintainers = [ maintainers.andrewrk ];
};
}
|