From bd950968fcb467ba43b7f4ac49ddd022f77b6bc6 Mon Sep 17 00:00:00 2001 From: emaryn Date: Thu, 27 Feb 2025 06:45:21 +0800 Subject: [PATCH] rtmidi: 5.0.0 -> 6.0.0 --- .../libraries/audio/rtmidi/default.nix | 29 +++++-------------- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/pkgs/development/libraries/audio/rtmidi/default.nix b/pkgs/development/libraries/audio/rtmidi/default.nix index 79bf235d6833..b22849d2d54f 100644 --- a/pkgs/development/libraries/audio/rtmidi/default.nix +++ b/pkgs/development/libraries/audio/rtmidi/default.nix @@ -17,30 +17,15 @@ stdenv.mkDerivation rec { pname = "rtmidi"; - version = "5.0.0"; + version = "6.0.0"; src = fetchFromGitHub { owner = "thestk"; repo = "rtmidi"; - rev = version; - sha256 = "1r1sqmdi499zfh6z6kjkab6d4a7kz3il5kkcdfz9saa6ry992211"; + tag = version; + hash = "sha256-QuUeFx8rPpe0+exB3chT6dUceDa/7ygVy+cQYykq7e0="; }; - patches = [ - # Remove when https://github.com/thestk/rtmidi/pull/278 merged - (fetchpatch { - name = "0001-rtmidi-Use-posix-sched_yield-instead-of-pthread_yield.patch"; - url = "https://github.com/thestk/rtmidi/pull/278/commits/cfe34c02112c256235b62b45895fc2c401fd874d.patch"; - sha256 = "0yzq7zbdkl5r4i0r6vy2kq986cqdxz2cpzb7s977mvh09kdikrw1"; - }) - # Remove when https://github.com/thestk/rtmidi/pull/277 merged - (fetchpatch { - name = "0002-rtmidi-include-TargetConditionals.h-on-Apple-platforms.patch"; - url = "https://github.com/thestk/rtmidi/pull/277/commits/9d863beb28f03ec53f3e4c22cc0d3c34a1e1789b.patch"; - sha256 = "1hlrg23c1ycnwdvxpic8wvypiril04rlph0g820qn1naf92imfjg"; - }) - ]; - nativeBuildInputs = [ cmake pkg-config @@ -61,11 +46,11 @@ stdenv.mkDerivation rec { "-DRTMIDI_API_CORE=${if coremidiSupport then "ON" else "OFF"}" ]; - meta = with lib; { + meta = { description = "Set of C++ classes that provide a cross platform API for realtime MIDI input/output"; homepage = "https://www.music.mcgill.ca/~gary/rtmidi/"; - license = licenses.mit; - maintainers = with maintainers; [ magnetophon ]; - platforms = platforms.unix; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ magnetophon ]; + platforms = lib.platforms.unix; }; }