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