diff --git a/pkgs/development/libraries/SDL2_mixer/default.nix b/pkgs/development/libraries/SDL2_mixer/default.nix index 7e1d097ba5cb..2d1ef9853819 100644 --- a/pkgs/development/libraries/SDL2_mixer/default.nix +++ b/pkgs/development/libraries/SDL2_mixer/default.nix @@ -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"