lol
1{ stdenv, fetchFromGitHub, autoconf, automake, libtool, libjack2, alsaLib, pkgconfig }:
2
3stdenv.mkDerivation rec {
4 version = "2.1.1";
5 name = "rtmidi-${version}";
6
7 src = fetchFromGitHub {
8 owner = "thestk";
9 repo = "rtmidi";
10 rev = "${version}";
11 sha256 = "11pl45lp8sq5xkpipwk622w508nw0qcxr03ibicqn1lsws0hva96";
12 };
13
14 enableParallelBuilding = true;
15
16 nativeBuildInputs = [ pkgconfig ];
17 buildInputs = [ autoconf automake libtool libjack2 alsaLib ];
18
19 preConfigure = ''
20 ./autogen.sh --no-configure
21 ./configure
22 '';
23
24 meta = {
25 description = "A set of C++ classes that provide a cross platform API for realtime MIDI input/output";
26 homepage = http://www.music.mcgill.ca/~gary/rtmidi/;
27 license = stdenv.lib.licenses.mit;
28 maintainers = [ stdenv.lib.maintainers.magnetophon ];
29 platforms = with stdenv.lib.platforms; linux ++ darwin;
30 };
31}