SDL2_mixer: fix path to timidity.cfg

Without the change client programs like `fheroes2` fail to load `MIDI`
files:

    $ nix run -f '<nixpkgs>' fheroes2
    $ 14.03.2023 22:22:21: [ERROR]    createMusic:  Failed to create a music track from memory. The error: Couldn't open timidity.cfg

After the change music plays as expected. It's a forward-port of the
same fix that `SDL2_mixer` had in f11d1d9 ("SDl2_mixer: fix MIDI
playback by adding timidity paths")
This commit is contained in:
Sergei Trofimovich 2023-03-14 22:21:13 +00:00
parent 8889512934
commit 85cccb63e6

View file

@ -32,6 +32,9 @@ stdenv.mkDerivation rec {
"--disable-music-mp3-mpg123-shared"
"--disable-music-opus-shared"
"--disable-music-midi-fluidsynth-shared"
# override default path to allow MIDI files to be played
"--with-timidity-cfg=${timidity}/share/timidity/timidity.cfg"
] ++ lib.optionals stdenv.isDarwin [
"--disable-sdltest"
"--disable-smpegtest"