milkytracker: workaround for rtmidi support

RtMidi 5.0.0 requires C++11 support now.
Upstream bug: https://github.com/milkytracker/MilkyTracker/issues/262
This commit is contained in:
OPNA2608 2021-12-01 17:48:13 +01:00
parent 2c21eee93e
commit fbd58b1d4a

View File

@ -12,6 +12,12 @@ stdenv.mkDerivation rec {
sha256 = "025fj34gq2kmkpwcswcyx7wdxb89vm944dh685zi4bxx0hz16vvk";
};
postPatch = ''
# https://github.com/milkytracker/MilkyTracker/issues/262
substituteInPlace CMakeLists.txt \
--replace 'CMAKE_CXX_STANDARD 98' 'CMAKE_CXX_STANDARD 11'
'';
nativeBuildInputs = [ cmake pkg-config makeWrapper ];
buildInputs = [ SDL2 alsa-lib libjack2 lhasa perl rtmidi zlib zziplib ];