tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
rtaudio_6: init at 6.0.1
OPNA2608
2 years ago
26dab214
e9fd7afe
+54
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
rt
rtaudio_6
package.nix
top-level
all-packages.nix
+49
pkgs/by-name/rt/rtaudio_6/package.nix
···
1
1
+
{ stdenv
2
2
+
, lib
3
3
+
, config
4
4
+
, fetchFromGitHub
5
5
+
, cmake
6
6
+
, pkg-config
7
7
+
, alsaSupport ? stdenv.hostPlatform.isLinux
8
8
+
, alsa-lib
9
9
+
, pulseaudioSupport ? config.pulseaudio or stdenv.hostPlatform.isLinux
10
10
+
, libpulseaudio
11
11
+
, jackSupport ? true
12
12
+
, jack
13
13
+
, coreaudioSupport ? stdenv.hostPlatform.isDarwin
14
14
+
, CoreAudio
15
15
+
}:
16
16
+
17
17
+
stdenv.mkDerivation rec {
18
18
+
pname = "rtaudio";
19
19
+
version = "6.0.1";
20
20
+
21
21
+
src = fetchFromGitHub {
22
22
+
owner = "thestk";
23
23
+
repo = "rtaudio";
24
24
+
rev = version;
25
25
+
sha256 = "11llxdg62gs6l2zc473s9zfb8jczflyq1dd0k0wfcmvyg5p33jq1";
26
26
+
};
27
27
+
28
28
+
nativeBuildInputs = [ cmake pkg-config ];
29
29
+
30
30
+
buildInputs = lib.optional alsaSupport alsa-lib
31
31
+
++ lib.optional pulseaudioSupport libpulseaudio
32
32
+
++ lib.optional jackSupport jack
33
33
+
++ lib.optional coreaudioSupport CoreAudio;
34
34
+
35
35
+
cmakeFlags = [
36
36
+
"-DRTAUDIO_API_ALSA=${if alsaSupport then "ON" else "OFF"}"
37
37
+
"-DRTAUDIO_API_PULSE=${if pulseaudioSupport then "ON" else "OFF"}"
38
38
+
"-DRTAUDIO_API_JACK=${if jackSupport then "ON" else "OFF"}"
39
39
+
"-DRTAUDIO_API_CORE=${if coreaudioSupport then "ON" else "OFF"}"
40
40
+
];
41
41
+
42
42
+
meta = with lib; {
43
43
+
description = "A set of C++ classes that provide a cross platform API for realtime audio input/output";
44
44
+
homepage = "https://www.music.mcgill.ca/~gary/rtaudio/";
45
45
+
license = licenses.mit;
46
46
+
maintainers = with maintainers; [ magnetophon ];
47
47
+
platforms = platforms.unix;
48
48
+
};
49
49
+
}
+5
pkgs/top-level/all-packages.nix
···
12289
12289
inherit (darwin.apple_sdk.frameworks) CoreAudio;
12290
12290
};
12291
12291
12292
12292
+
rtaudio_6 = callPackage ../by-name/rt/rtaudio_6/package.nix {
12293
12293
+
jack = libjack2;
12294
12294
+
inherit (darwin.apple_sdk.frameworks) CoreAudio;
12295
12295
+
};
12296
12296
+
12292
12297
rtmidi = callPackage ../development/libraries/audio/rtmidi {
12293
12298
jack = libjack2;
12294
12299
inherit (darwin.apple_sdk.frameworks) CoreMIDI CoreAudio CoreServices;