Merge pull request #232578 from paveloom/libremidi

This commit is contained in:
Sandro 2023-05-28 19:56:34 +02:00 committed by GitHub
commit f57ad228de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,44 @@
{ alsa-lib
, cmake
, CoreAudio
, CoreFoundation
, CoreMIDI
, CoreServices
, fetchFromGitHub
, lib
, stdenv
}:
stdenv.mkDerivation {
pname = "libremidi";
version = "unstable-2023-05-05";
src = fetchFromGitHub {
owner = "jcelerier";
repo = "libremidi";
rev = "cd2e52d59c8ecc97d751619072c4f4271fa82455";
hash = "sha256-CydoCprxqDl5FXjtgT+AckaRTqQAlCDwwrnPDK17A6o=";
};
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";
maintainers = [ lib.maintainers.paveloom ];
license = lib.licenses.bsd2;
platforms = lib.platforms.all;
};
}

View File

@ -22121,6 +22121,14 @@ with pkgs;
librem = callPackage ../development/libraries/librem { };
libremidi = callPackage ../development/libraries/libremidi {
inherit (darwin.apple_sdk.frameworks)
CoreAudio
CoreFoundation
CoreMIDI
CoreServices;
};
librelp = callPackage ../development/libraries/librelp { };
librepo = callPackage ../tools/package-management/librepo {