Merge pull request #136788 from trofi/SDl2_mixer-midi

This commit is contained in:
Artturi 2021-10-20 03:16:57 +03:00 committed by GitHub
commit 37a9affe1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,7 @@
, mpg123
, opusfile
, smpeg2
, timidity
}:
stdenv.mkDerivation rec {
@ -42,8 +43,16 @@ stdenv.mkDerivation rec {
mpg123
opusfile
smpeg2
# MIDI patterns
timidity
];
# fix default path to timidity.cfg so MIDI files could be played
postPatch = ''
substituteInPlace timidity/options.h \
--replace "/usr/share/timidity" "${timidity}/share/timidity"
'';
configureFlags = [
"--disable-music-ogg-shared"
"--disable-music-flac-shared"