8 stdenv.mkDerivation rec {
13 url = "mirror://sourceforge/project/modplug-xmms/libmodplug/${version}/${pname}-${version}.tar.gz";
14 sha256 = "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25";
17 # Unfortunately, upstream appears inactive and the patches from the fork don’t apply cleanly.
18 # Modify `src/fastmix.cpp` to remove usage of the register storage class, which is
19 # not allowed in C++17 and is an error in clang 16.
20 prePatch = "substituteInPlace src/fastmix.cpp --replace 'register ' ''";
28 substituteInPlace configure \
29 --replace ' -mmacosx-version-min=10.5' "" \
30 --replace /usr/bin/file ${file}/bin/file
34 description = "MOD playing library";
35 homepage = "https://modplug-xmms.sourceforge.net/";
36 license = licenses.publicDomain;
37 platforms = platforms.unix;
38 maintainers = with maintainers; [ raskin ];