From f6d7faef5805cf0426c2d1098473fac6e85c5aa9 Mon Sep 17 00:00:00 2001 From: aleksana Date: Fri, 25 Apr 2025 00:01:57 +0800 Subject: [PATCH] boost187: Fix ABI detection for empty 'os.platform' --- pkgs/development/libraries/boost/generic.nix | 7 +++++++ 1 file changed, 7 insertions(+) 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; {