Merge pull request #206003 from azuwis/MIDIVisualizer

authored by

Sandro and committed by
GitHub
bc9a00ed 42ed6597

+41 -7
+38 -6
pkgs/applications/audio/midi-visualizer/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake, pkg-config, libX11, glfw, makeWrapper, 2 - libXrandr, libXinerama, libXcursor, gtk3, ffmpeg-full, ...}: 3 4 stdenv.mkDerivation rec { 5 pname = "MIDIVisualizer"; ··· 15 nativeBuildInputs = [ cmake pkg-config makeWrapper]; 16 17 buildInputs = [ 18 - libX11 19 glfw 20 libXrandr 21 libXinerama 22 libXcursor 23 gtk3 24 - ffmpeg-full 25 ]; 26 27 - installPhase = '' 28 mkdir -p $out/bin 29 cp MIDIVisualizer $out/bin 30 ··· 36 description = "A small MIDI visualizer tool, using OpenGL"; 37 homepage = "https://github.com/kosua20/MIDIVisualizer"; 38 license = licenses.mit; 39 - platforms = platforms.linux; 40 maintainers = [ maintainers.ericdallo ]; 41 }; 42 }
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , cmake 5 + , pkg-config 6 + , libX11 7 + , glfw 8 + , makeWrapper 9 + , libXrandr 10 + , libXinerama 11 + , libXcursor 12 + , gtk3 13 + , ffmpeg-full 14 + , AppKit 15 + , Carbon 16 + , Cocoa 17 + , CoreAudio 18 + , CoreMIDI 19 + , CoreServices 20 + , Kernel 21 + }: 22 23 stdenv.mkDerivation rec { 24 pname = "MIDIVisualizer"; ··· 34 nativeBuildInputs = [ cmake pkg-config makeWrapper]; 35 36 buildInputs = [ 37 glfw 38 + ffmpeg-full 39 + ] ++ lib.optionals stdenv.isLinux [ 40 + libX11 41 libXrandr 42 libXinerama 43 libXcursor 44 gtk3 45 + ] ++ lib.optionals stdenv.isDarwin [ 46 + AppKit 47 + Carbon 48 + Cocoa 49 + CoreAudio 50 + CoreMIDI 51 + CoreServices 52 + Kernel 53 ]; 54 55 + installPhase = if stdenv.isDarwin then '' 56 + mkdir -p $out/Applications $out/bin 57 + cp -r MIDIVisualizer.app $out/Applications/ 58 + ln -s ../Applications/MIDIVisualizer.app/Contents/MacOS/MIDIVisualizer $out/bin/ 59 + '' else '' 60 mkdir -p $out/bin 61 cp MIDIVisualizer $out/bin 62 ··· 68 description = "A small MIDI visualizer tool, using OpenGL"; 69 homepage = "https://github.com/kosua20/MIDIVisualizer"; 70 license = licenses.mit; 71 + platforms = platforms.unix; 72 maintainers = [ maintainers.ericdallo ]; 73 }; 74 }
+3 -1
pkgs/top-level/all-packages.nix
··· 21761 21762 micropython = callPackage ../development/interpreters/micropython { }; 21763 21764 - MIDIVisualizer = callPackage ../applications/audio/midi-visualizer { }; 21765 21766 mimalloc = callPackage ../development/libraries/mimalloc { }; 21767
··· 21761 21762 micropython = callPackage ../development/interpreters/micropython { }; 21763 21764 + MIDIVisualizer = callPackage ../applications/audio/midi-visualizer { 21765 + inherit (darwin.apple_sdk.frameworks) AppKit Cocoa Carbon CoreAudio CoreMIDI CoreServices Kernel; 21766 + }; 21767 21768 mimalloc = callPackage ../development/libraries/mimalloc { }; 21769