rtmidi: 4.0.0 -> 5.0.0

OPNA2608 2c21eee9 55c5f687

+10 -22
+10 -22
pkgs/development/libraries/audio/rtmidi/default.nix
··· 15 15 }: 16 16 17 17 stdenv.mkDerivation rec { 18 - version = "4.0.0"; 19 18 pname = "rtmidi"; 19 + version = "5.0.0"; 20 20 21 21 src = fetchFromGitHub { 22 22 owner = "thestk"; 23 23 repo = "rtmidi"; 24 24 rev = version; 25 - sha256 = "1g31p6a96djlbk9jh5r4pjly3x76lhccva9hrw6xzdma8dsjzgyq"; 25 + sha256 = "1r1sqmdi499zfh6z6kjkab6d4a7kz3il5kkcdfz9saa6ry992211"; 26 26 }; 27 27 28 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 - }) 29 + # Remove when https://github.com/thestk/rtmidi/pull/278 merged 35 30 (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"; 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"; 39 34 }) 35 + # Remove when https://github.com/thestk/rtmidi/pull/277 merged 40 36 (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"; 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"; 44 40 }) 45 - 46 - # https://github.com/thestk/rtmidi/pull/277 47 - ./macos_include_targetconditionals.patch 48 41 ]; 49 - 50 - postPatch = '' 51 - substituteInPlace rtmidi.pc.in \ 52 - --replace 'Requires:' 'Requires.private:' 53 - ''; 54 42 55 43 nativeBuildInputs = [ cmake pkg-config ]; 56 44