libmodplug: fix build with clang 16

Remove usage of the register storage class, which is not allowed in
C++17 (the default for clang 16).
This commit is contained in:
Randy Eckenrode
2023-09-06 17:34:35 -04:00
parent dba6d77ad2
commit 9db1e83c07
@@ -9,6 +9,11 @@ stdenv.mkDerivation rec {
sha256 = "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25";
};
# Unfortunately, upstream appears inactive and the patches from the fork dont apply cleanly.
# Modify `src/fastmix.cpp` to remove usage of the register storage class, which is
# not allowed in C++17 and is an error in clang 16.
prePatch = "substituteInPlace src/fastmix.cpp --replace 'register ' ''";
outputs = [ "out" "dev" ];
preConfigure = ''