1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00

pianobooster: 0.7.2b -> 1.0.0 (#197900)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Co-authored-by: linsui <linsui555@gmail.com>
This commit is contained in:
linsui 2022-11-01 10:40:25 +00:00 committed by GitHub
parent ba15914be7
commit ddcd07f4a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 49 additions and 9 deletions

View file

@ -1,29 +1,69 @@
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, qttools
, alsa-lib, ftgl, libGLU, libjack2, qtbase, rtmidi, wrapQtAppsHook
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, qttools
, alsa-lib
, ftgl
, libGLU
, qtbase
, rtmidi
, libjack2
, fluidsynth
, soundfont-fluid
, unzip
, wrapQtAppsHook
}:
stdenv.mkDerivation rec {
pname = "pianobooster";
version = "0.7.2b";
version = "1.0.0";
src = fetchFromGitHub {
owner = "captnfab";
owner = "pianobooster";
repo = "PianoBooster";
rev = "v${version}";
sha256 = "03xcdnlpsij22ca3i6xj19yqzn3q2ch0d32r73v0c96nm04gvhjj";
hash = "sha256-1WOlAm/HXSL6QK0Kd1mnFEZxxpMseTG+6WzgMNWt+RA=";
};
nativeBuildInputs = [ cmake pkg-config qttools wrapQtAppsHook ];
postPatch = ''
substituteInPlace src/Settings.cpp src/GuiMidiSetupDialog.cpp \
--replace "/usr/share/soundfonts" "${soundfont-fluid}/share/soundfonts" \
--replace "FluidR3_GM.sf2" "FluidR3_GM2-2.sf2"
'';
buildInputs = [ alsa-lib ftgl libGLU libjack2 qtbase rtmidi ];
nativeBuildInputs = [
cmake
pkg-config
qttools
wrapQtAppsHook
];
buildInputs = [
alsa-lib
ftgl
libGLU
qtbase
rtmidi
libjack2
fluidsynth
];
cmakeFlags = [
"-DOpenGL_GL_PREFERENCE=GLVND"
"-DUSE_JACK=ON"
];
postInstall = ''
qtWrapperArgs+=(
--prefix PATH : "${lib.makeBinPath [ unzip ]}"
)
'';
meta = with lib; {
description = "A MIDI file player that teaches you how to play the piano";
homepage = "https://github.com/captnfab/PianoBooster";
homepage = "https://github.com/pianobooster/PianoBooster";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ goibhniu orivej ];

View file

@ -31076,7 +31076,7 @@ with pkgs;
pianobar = callPackage ../applications/audio/pianobar { };
pianobooster = qt5.callPackage ../applications/audio/pianobooster { stdenv = gcc10StdenvCompat; };
pianobooster = qt5.callPackage ../applications/audio/pianobooster { };
pianoteq = callPackage ../applications/audio/pianoteq { };