fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 alsa-lib,
7 libjack2,
8 libpulseaudio,
9}:
10
11stdenv.mkDerivation rec {
12 version = "2.0.0";
13 pname = "libsoundio";
14
15 src = fetchFromGitHub {
16 owner = "andrewrk";
17 repo = "libsoundio";
18 rev = version;
19 sha256 = "12l4rvaypv87vigdrmjz48d4d6sq4gfxf5asvnc4adyabxb73i4x";
20 };
21
22 nativeBuildInputs = [ cmake ];
23
24 buildInputs = [
25 libjack2
26 ]
27 ++ lib.optionals stdenv.hostPlatform.isLinux [
28 libpulseaudio
29 alsa-lib
30 ];
31
32 cmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [
33 "-DBUILD_TESTS=OFF"
34 ];
35
36 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-Wno-strict-prototypes";
37
38 meta = with lib; {
39 description = "Cross platform audio input and output";
40 homepage = "http://libsound.io/";
41 license = licenses.mit;
42 platforms = platforms.unix;
43 maintainers = [ maintainers.andrewrk ];
44 };
45}