2020-09-25 04:45:31 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkg-config, libX11, glfw, makeWrapper,
|
|
|
|
libXrandr, libXinerama, libXcursor, gtk3, ffmpeg-full, ...}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "MIDIVisualizer";
|
2020-11-24 20:58:05 +00:00
|
|
|
version = "5.2";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kosua20";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-11-24 20:58:05 +00:00
|
|
|
sha256 = "19z8m6clirz8kwfjp0z1j69fjfna8ar7hkgqnlm3lrc84gyx2rpf";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|