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-05 18:57:08 -04:00
parent dba6d77ad2
commit 9db1e83c07
No known key found for this signature in database
GPG key ID: 64C1CD4EC2A600D9

View file

@ -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 = ''