Skip to content

Commit

Permalink
Merge pull request #253724 from reckenrode/libmodplug-fix
Browse files Browse the repository at this point in the history
libmodplug: fix build with clang 16
  • Loading branch information
Mindavi authored Sep 7, 2023
2 parents 6946977 + 9db1e83 commit 05d3dd9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/development/libraries/libmodplug/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ stdenv.mkDerivation rec {
sha256 = "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25";
};

# Unfortunately, upstream appears inactive and the patches from the fork don’t 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 = ''
Expand Down

0 comments on commit 05d3dd9

Please sign in to comment.