1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-14 00:25:24 +00:00
nixpkgs/pkgs/applications/audio/midi-visualizer/default.nix

43 lines
1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libX11, glfw, makeWrapper,
2020-07-27 03:33:06 +01:00
libXrandr, libXinerama, libXcursor, gtk3, ffmpeg-full, ...}:
stdenv.mkDerivation rec {
pname = "MIDIVisualizer";
2021-04-14 22:00:37 +01:00
version = "6.4";
2020-07-27 03:33:06 +01:00
src = fetchFromGitHub {
owner = "kosua20";
repo = pname;
rev = "v${version}";
2021-04-14 22:00:37 +01:00
sha256 = "sha256-XR5xmQYVbBR6QWt/+PLeGqg0t4xl35MPrQNaPsmgAYA=";
2020-07-27 03:33:06 +01: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 lib; {
2020-07-27 03:33:06 +01:00
description = "A small MIDI visualizer tool, using OpenGL";
homepage = "https://github.com/kosua20/MIDIVisualizer";
license = licenses.mit;
platforms = platforms.linux;
maintainers = [ maintainers.ericdallo ];
};
}