nixpkgs/pkgs/development/libraries/libremidi/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
837 B
Nix
Raw Normal View History

2023-05-18 08:59:54 +00:00
{ alsa-lib
, cmake
, CoreAudio
, CoreFoundation
, CoreMIDI
, CoreServices
, fetchFromGitHub
, lib
, stdenv
}:
2023-07-11 19:17:25 +00:00
stdenv.mkDerivation rec {
2023-05-18 08:59:54 +00:00
pname = "libremidi";
2024-02-13 02:32:30 +00:00
version = "4.4.0";
2023-05-18 08:59:54 +00:00
src = fetchFromGitHub {
owner = "jcelerier";
repo = "libremidi";
2023-07-11 19:17:25 +00:00
rev = "v${version}";
2024-02-13 02:32:30 +00:00
hash = "sha256-raVBJ75/UmM3P69s8VNUXRE/2jV4WqPIfI4eXaf6UEg=";
2023-05-18 08:59:54 +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";
maintainers = [ ];
2023-05-18 08:59:54 +00:00
license = lib.licenses.bsd2;
platforms = lib.platforms.all;
};
}