Commit Graph

25 Commits

Author SHA1 Message Date
Sergei Trofimovich
85cccb63e6 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")
2023-03-14 22:28:49 +00:00
superherointj
c973f19acd SDL2_mixer: 2.0.4 -> 2.6.3
Release: https://github.com/libsdl-org/SDL_mixer/releases/tag/release-2.6.3
2023-02-27 14:08:42 -03:00
Sergei Trofimovich
83b01dd4ec SDL2_mixer: add "dev" output
`SDL2_mixer` is a a popular game dependency. Split it's `dev` output to
separate store path to reduce runtime closure size.

While at it amend a few games's include paths.
2022-09-21 07:36:32 +01:00
Sergei Trofimovich
f11d1d91cb SDl2_mixer: fix MIDI playback by adding timidity paths
Noticed on fheroes2 package: before the change fheroes2 was not able to
play MIDI samples and complained as:
    PlayMusic:  music parameter was NULL

It happens because default search paths for 'timidity.cfg'
did not include any of nixos's paths in 'timidity/options.h':

    getenv("TIMIDITY_CFG")
    "."
    #define DEFAULT_PATH    "/etc/timidity"
    #define DEFAULT_PATH1   "/usr/share/timidity"
    #define DEFAULT_PATH2   "/usr/local/share/timidity"
    #define DEFAULT_PATH3   "/usr/local/lib/timidity"

As a result even with globally installed timidity MIDI can't be played.
abuse package also has the same problem and works it around by changing
directory to local copy of 'timidity.cfg':

    # The timidity bundled into SDL_mixer looks in . and in several global places
    # like /etc for its configuration file.
    cd @out@/etc
    exec @out@/bin/.abuse-bin "$@"

The change fixes SDL2_mixer by changing "/usr/share/timidity" path
to nix's timidity store path. Tested on fheroes2 with MIDI files.
2021-09-05 14:58:41 +01:00
Ben Siraphob
66e44425c6 pkgs/development/libraries: stdenv.lib -> lib 2021-01-21 19:11:02 -08:00
Pavol Rusnak
ae322db745
SDL2_mixer: enable midi by default, cleanup package
Co-authored-by: Nikolay Amiantov <ab@fmap.me>
2020-11-28 10:17:32 +01:00
Tom Hall
4cc48e5e0f SDL2_mixer: add optional dependency mpg123 2020-06-11 21:57:56 -07:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Taran Lynn
441a181498 SDL2_mixer: add opusfile dependency for opus support (#68767) 2020-01-09 17:28:34 -05:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
R. RyanTM
32922dda45 SDL2_mixer: 2.0.2 -> 2.0.4
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/sdl2_mixer/versions
2018-11-08 21:13:07 -08:00
Silvan Mosberger
57bccb3cb8 treewide: http -> https sources (#42676)
* treewide: http -> https sources

This updates the source urls of all top-level packages from http to
https where possible.

* buildtorrent: fix url and tab -> spaces
2018-06-28 20:43:35 +02:00
Matthew Bauer
08c6c6beb4 SDL2: disable sdltest on darwin
Darwin headless will hang when trying to run the SDL test program.
2018-06-06 19:19:30 -04:00
Mitsuhiro Nakamura
4014b24ca1 SDL2_{gfx,mixer,net,ttf}: fix Darwin build 2018-01-21 00:26:21 +09:00
Franz Pletz
5feccdc088
SDL2_mixer: 2.0.1 -> 2.0.2 2017-10-27 11:58:50 +02:00
Jörg Thalheim
3eae39b38a SDL2_mixer: use autoreconfHook 2017-08-27 06:34:08 +01:00
Orivej Desh
e5be0e82d2 SDL2_mixer: build with libmodplug and smpeg2 2017-08-26 23:15:19 +00:00
Silvan Mosberger
f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00
Cray Elliott
f60fec99d1 SDL2_mixer: add optional fluidsynth support
also add flac support and mp3 support, and add myself as the maintainer,
since there is no current maintainer for this package
2017-03-15 20:44:54 -07:00
Nikolay Amiantov
7bf7f19765 SDL2: cleanup and add patch to discover extensions 2016-08-22 06:30:01 +03:00
Tuomas Tynkkynen
21f17d69f6 treewide: Add lots of meta.platforms
Build-tested on x86_64 Linux & Mac.
2016-08-02 21:42:43 +03:00
Tobias Geerinckx-Rice
5dc7093e56
SDL2_mixer: 2.0.0 -> 2.0.1 2016-05-10 01:51:05 +02:00
Sander van der Burg
d9cf906516 Propagate SDL_mixer's build inputs, because otherwise every dependent package must add libvorbis etc. to its buildInputs which is inconvenient 2014-05-17 13:23:20 +02:00
Carles Pagès
e9a4a91af6 SDL2: update hashes for new stable release tarballs.
I also had to update the url to the main SDL2 lib.
2013-08-27 23:34:49 +02:00
Carles Pagès
0d637ea5e0 Add SDL2_image and SDL2_mixer, release candidate. 2013-08-27 22:55:41 +02:00