Merge pull request #253724 from reckenrode/libmodplug-fix

libmodplug: fix build with clang 16
This commit is contained in:
Rick van Schijndel
2023-09-07 23:15:30 +02:00
committed by GitHub
@@ -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 = ''