Merge pull request #93944 from ericdallo/add-midi-visualizer

MIDIVisualizer: init at 5.1
This commit is contained in:
Lassulus 2020-09-10 22:08:01 +02:00 committed by GitHub
commit 173be45747
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,42 @@
{ stdenv, fetchFromGitHub, cmake, pkg-config, libX11, glfw, makeWrapper,
libXrandr, libXinerama, libXcursor, gtk3, ffmpeg-full, ...}:
stdenv.mkDerivation rec {
pname = "MIDIVisualizer";
version = "5.1";
src = fetchFromGitHub {
owner = "kosua20";
repo = pname;
rev = "v${version}";
sha256 = "1fjlfa0qjpnjxl3bx5cq3dkswv9wihxmgfpkjijqp7kvf3q127rq";
};
nativeBuildInputs = [ cmake pkg-config makeWrapper];
buildInputs = [
libX11
glfw
libXrandr
libXinerama
libXcursor
gtk3
ffmpeg-full
];
installPhase = ''
mkdir -p $out/bin
cp MIDIVisualizer $out/bin
wrapProgram $out/bin/MIDIVisualizer \
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS"
'';
meta = with stdenv.lib; {
description = "A small MIDI visualizer tool, using OpenGL";
homepage = "https://github.com/kosua20/MIDIVisualizer";
license = licenses.mit;
platforms = platforms.linux;
maintainers = [ maintainers.ericdallo ];
};
}

View file

@ -14341,6 +14341,8 @@ in
micropython = callPackage ../development/interpreters/micropython { };
MIDIVisualizer = callPackage ../applications/audio/midi-visualizer { };
mimalloc = callPackage ../development/libraries/mimalloc { };
minizip = callPackage ../development/libraries/minizip { };