summary refs log tree commit diff
path: root/pkgs/development/libraries/audio/rtaudio/default.nix
blob: 53efa598079b18f5802a3683bfdefccf3af96282 (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
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, libjack2,  alsaLib, pulseaudio, rtmidi }:

stdenv.mkDerivation rec {
  version = "5.1.0";
  pname = "rtaudio";

  src = fetchFromGitHub {
    owner = "thestk";
    repo = "rtaudio";
    rev = version;
    sha256 = "1pglnjz907ajlhnlnig3p0sx7hdkpggr8ss7b3wzf1lykzgv9l52";
  };

  patches = [ ./rtaudio-pkgconfig.patch ];

  enableParallelBuilding = true;

  buildInputs = [ autoconf automake libtool libjack2 alsaLib pulseaudio rtmidi ];

  preConfigure = ''
    ./autogen.sh --no-configure
    ./configure
  '';

  meta = with stdenv.lib; {
    description = "A set of C++ classes that provide a cross platform API for realtime audio input/output";
    homepage =  "http://www.music.mcgill.ca/~gary/rtaudio/";
    license = licenses.mit;
    maintainers = [ maintainers.magnetophon ];
    platforms = platforms.unix;
  };
}