tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
rtmidi: 4.0.0 -> 5.0.0
OPNA2608
4 years ago
2c21eee9
55c5f687
+10
-22
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
audio
rtmidi
default.nix
+10
-22
pkgs/development/libraries/audio/rtmidi/default.nix
···
15
}:
16
17
stdenv.mkDerivation rec {
18
-
version = "4.0.0";
19
pname = "rtmidi";
0
20
21
src = fetchFromGitHub {
22
owner = "thestk";
23
repo = "rtmidi";
24
rev = version;
25
-
sha256 = "1g31p6a96djlbk9jh5r4pjly3x76lhccva9hrw6xzdma8dsjzgyq";
26
};
27
28
patches = [
29
-
# PR #230, fix CMake problems
30
-
(fetchpatch {
31
-
name = "RtMidi-Fix-JACK_HAS_PORT_RENAME-define.patch";
32
-
url = "https://github.com/thestk/rtmidi/pull/230/commits/768a30a61b60240b66cc2d43bc27a544ff9f1622.patch";
33
-
sha256 = "1sym4f7nb2qyyxfhi1l0xsm2hfh6gddn81y36qvfq4mcs33vvid0";
34
-
})
35
(fetchpatch {
36
-
name = "RtMidi-Add-prefix-define-for-pkgconfig.patch";
37
-
url = "https://github.com/thestk/rtmidi/pull/230/commits/7a32e23e3f6cb43c0d2d58443ce205d438e76f44.patch";
38
-
sha256 = "06im8mb05wah6bnkadw2gpkhmilxb8p84pxqr50b205cchpq304w";
39
})
0
40
(fetchpatch {
41
-
name = "RtMidi-Adjust-public-header-installs-to-match-autotools.patch";
42
-
url = "https://github.com/thestk/rtmidi/pull/230/commits/892fe5492f0e787484fa4a37027b08c265ce001f.patch";
43
-
sha256 = "0ca9m42xa3gmycimzvzvl67wa266xq9pfp1b4v555rh2fp52kbcj";
44
})
45
-
46
-
# https://github.com/thestk/rtmidi/pull/277
47
-
./macos_include_targetconditionals.patch
48
];
49
-
50
-
postPatch = ''
51
-
substituteInPlace rtmidi.pc.in \
52
-
--replace 'Requires:' 'Requires.private:'
53
-
'';
54
55
nativeBuildInputs = [ cmake pkg-config ];
56
···
15
}:
16
17
stdenv.mkDerivation rec {
0
18
pname = "rtmidi";
19
+
version = "5.0.0";
20
21
src = fetchFromGitHub {
22
owner = "thestk";
23
repo = "rtmidi";
24
rev = version;
25
+
sha256 = "1r1sqmdi499zfh6z6kjkab6d4a7kz3il5kkcdfz9saa6ry992211";
26
};
27
28
patches = [
29
+
# Remove when https://github.com/thestk/rtmidi/pull/278 merged
0
0
0
0
0
30
(fetchpatch {
31
+
name = "0001-rtmidi-Use-posix-sched_yield-instead-of-pthread_yield.patch";
32
+
url = "https://github.com/thestk/rtmidi/pull/278/commits/cfe34c02112c256235b62b45895fc2c401fd874d.patch";
33
+
sha256 = "0yzq7zbdkl5r4i0r6vy2kq986cqdxz2cpzb7s977mvh09kdikrw1";
34
})
35
+
# Remove when https://github.com/thestk/rtmidi/pull/277 merged
36
(fetchpatch {
37
+
name = "0002-rtmidi-include-TargetConditionals.h-on-Apple-platforms.patch";
38
+
url = "https://github.com/thestk/rtmidi/pull/277/commits/9d863beb28f03ec53f3e4c22cc0d3c34a1e1789b.patch";
39
+
sha256 = "1hlrg23c1ycnwdvxpic8wvypiril04rlph0g820qn1naf92imfjg";
40
})
0
0
0
41
];
0
0
0
0
0
42
43
nativeBuildInputs = [ cmake pkg-config ];
44