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
47 lines
1006 B
Nix
47 lines
1006 B
Nix
{
|
|
lib,
|
|
alsa-lib,
|
|
cmake,
|
|
fetchFromGitHub,
|
|
stdenv,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libremidi";
|
|
version = "4.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jcelerier";
|
|
repo = "libremidi";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-JwXOIBq+pmPIR4y/Zv5whEyCfpLHmbllzdH2WLZmWLw=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
|
|
alsa-lib
|
|
];
|
|
|
|
# Bug: set this as true breaks obs-studio-plugins.advanced-scene-switcher
|
|
strictDeps = false;
|
|
|
|
# PipeWire support currently disabled. Enabling it requires packaging:
|
|
# https://github.com/cameron314/readerwriterqueue
|
|
cmakeFlags = [ "-DLIBREMIDI_NO_PIPEWIRE=ON" ];
|
|
|
|
postInstall = ''
|
|
cp -r $src/include $out
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/jcelerier/libremidi";
|
|
description = "Modern C++ MIDI real-time & file I/O library";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|