diff --git a/pkgs/development/libraries/boost/generic.nix b/pkgs/development/libraries/boost/generic.nix index 9167e7b08c611..044070d64f6ec 100644 --- a/pkgs/development/libraries/boost/generic.nix +++ b/pkgs/development/libraries/boost/generic.nix @@ -233,6 +233,13 @@ stdenv.mkDerivation { relative = "include"; hash = "sha256-9JvKQOAB19wQpWLNAhuB9eL8qKqXWTQHAJIXdLYMNG8="; }) + # Fixes ABI detection on some platforms (like loongarch64) + (fetchpatch { + url = "https://github.com/boostorg/context/commit/63996e427b4470c7b99b0f4cafb94839ea3670b6.patch"; + stripLen = 1; + extraPrefix = "libs/context/"; + hash = "sha256-Z8uw2+4IEybqVcU25i/0XJKS16hi/+3MXUxs53ghjL0="; + }) ]; meta = with lib; {