2023-07-15 17:15:38 +00:00
|
|
|
{ alsa-lib
|
|
|
|
, cmake
|
|
|
|
, CoreAudio
|
|
|
|
, CoreFoundation
|
|
|
|
, CoreMIDI
|
|
|
|
, CoreServices
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libremidi";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "4.2.4";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jcelerier";
|
|
|
|
repo = "libremidi";
|
|
|
|
rev = "v${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-AWONCZa4tVZ7HMze9WSVzHQUXIrn1i6ZZ4Hgufkrep8=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = lib.optional stdenv.isLinux alsa-lib
|
|
|
|
++ lib.optionals stdenv.isDarwin [
|
|
|
|
CoreAudio
|
|
|
|
CoreFoundation
|
|
|
|
CoreMIDI
|
|
|
|
CoreServices
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
cp -r $src/include $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A modern C++ MIDI real-time & file I/O library";
|
|
|
|
homepage = "https://github.com/jcelerier/libremidi";
|
2024-01-25 14:12:00 +00:00
|
|
|
maintainers = [ ];
|
2023-07-15 17:15:38 +00:00
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|