1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

rtaudio_6: init at 6.0.1

This commit is contained in:
OPNA2608 2024-04-26 11:58:48 +02:00
parent e9fd7afed7
commit 26dab21459
2 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,49 @@
{ stdenv
, lib
, config
, fetchFromGitHub
, cmake
, pkg-config
, alsaSupport ? stdenv.hostPlatform.isLinux
, alsa-lib
, pulseaudioSupport ? config.pulseaudio or stdenv.hostPlatform.isLinux
, libpulseaudio
, jackSupport ? true
, jack
, coreaudioSupport ? stdenv.hostPlatform.isDarwin
, CoreAudio
}:
stdenv.mkDerivation rec {
pname = "rtaudio";
version = "6.0.1";
src = fetchFromGitHub {
owner = "thestk";
repo = "rtaudio";
rev = version;
sha256 = "11llxdg62gs6l2zc473s9zfb8jczflyq1dd0k0wfcmvyg5p33jq1";
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = lib.optional alsaSupport alsa-lib
++ lib.optional pulseaudioSupport libpulseaudio
++ lib.optional jackSupport jack
++ lib.optional coreaudioSupport CoreAudio;
cmakeFlags = [
"-DRTAUDIO_API_ALSA=${if alsaSupport then "ON" else "OFF"}"
"-DRTAUDIO_API_PULSE=${if pulseaudioSupport then "ON" else "OFF"}"
"-DRTAUDIO_API_JACK=${if jackSupport then "ON" else "OFF"}"
"-DRTAUDIO_API_CORE=${if coreaudioSupport then "ON" else "OFF"}"
];
meta = with lib; {
description = "A set of C++ classes that provide a cross platform API for realtime audio input/output";
homepage = "https://www.music.mcgill.ca/~gary/rtaudio/";
license = licenses.mit;
maintainers = with maintainers; [ magnetophon ];
platforms = platforms.unix;
};
}

View file

@ -12289,6 +12289,11 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) CoreAudio;
};
rtaudio_6 = callPackage ../by-name/rt/rtaudio_6/package.nix {
jack = libjack2;
inherit (darwin.apple_sdk.frameworks) CoreAudio;
};
rtmidi = callPackage ../development/libraries/audio/rtmidi {
jack = libjack2;
inherit (darwin.apple_sdk.frameworks) CoreMIDI CoreAudio CoreServices;