Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

47 lines
1.1 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
fetchpatch,
cmake,
pkg-config,
alsaSupport ? stdenv.hostPlatform.isLinux,
alsa-lib,
jackSupport ? true,
jack,
coremidiSupport ? stdenv.hostPlatform.isDarwin,
}:
stdenv.mkDerivation rec {
pname = "rtmidi";
version = "6.0.0";
src = fetchFromGitHub {
owner = "thestk";
repo = "rtmidi";
tag = version;
hash = "sha256-QuUeFx8rPpe0+exB3chT6dUceDa/7ygVy+cQYykq7e0=";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = lib.optional alsaSupport alsa-lib ++ lib.optional jackSupport jack;
cmakeFlags = [
"-DRTMIDI_API_ALSA=${if alsaSupport then "ON" else "OFF"}"
"-DRTMIDI_API_JACK=${if jackSupport then "ON" else "OFF"}"
"-DRTMIDI_API_CORE=${if coremidiSupport then "ON" else "OFF"}"
];
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ magnetophon ];
platforms = lib.platforms.unix;
};
}