15 stdenv.mkDerivation rec {
19 src = fetchFromGitHub {
23 sha256 = "sha256-uqBeh9vBP6+V+FN4lfeGxePQcpZMDYUuAo/d9a5rQxU=";
27 "-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=Release"
28 "-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=Release"
29 "-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=Release"
33 # Add missing header include
39 ext = stdenv.hostPlatform.extensions.sharedLibrary;
42 ln -s libportmidi${ext} "$out/lib/libporttime${ext}"
50 lib.optionals stdenv.hostPlatform.isLinux [
53 ++ lib.optionals stdenv.hostPlatform.isDarwin [
61 hardeningDisable = [ "format" ];
64 homepage = "https://github.com/PortMidi/portmidi";
65 description = "Platform independent library for MIDI I/O";
66 license = licenses.mit;
67 maintainers = with maintainers; [ emilytrau ];
68 platforms = platforms.unix;