summary refs log tree commit diff
path: root/pkgs/development/libraries/boost
diff options
context:
space:
mode:
authorRyan Burns <rtburns@protonmail.com>2021-12-31 21:00:15 -0800
committerRyan Burns <rtburns@protonmail.com>2021-12-31 21:00:21 -0800
commitb906464824bde6fc5e13db1f18066c4de68d25b1 (patch)
treec5512c0807ab8f95f57c56d66c60958a3e2973d2 /pkgs/development/libraries/boost
parent796af3ddba8c3b045b79332a39eae92f24efc277 (diff)
downloadnixpkgs-b906464824bde6fc5e13db1f18066c4de68d25b1.tar
nixpkgs-b906464824bde6fc5e13db1f18066c4de68d25b1.tar.gz
nixpkgs-b906464824bde6fc5e13db1f18066c4de68d25b1.tar.bz2
nixpkgs-b906464824bde6fc5e13db1f18066c4de68d25b1.tar.lz
nixpkgs-b906464824bde6fc5e13db1f18066c4de68d25b1.tar.xz
nixpkgs-b906464824bde6fc5e13db1f18066c4de68d25b1.tar.zst
nixpkgs-b906464824bde6fc5e13db1f18066c4de68d25b1.zip
boost177: fix on platforms without atomics
backport patch from boost178 to fix compilation when atomics are not available,
e.g. for armv5tel
Diffstat (limited to 'pkgs/development/libraries/boost')
-rw-r--r--pkgs/development/libraries/boost/generic.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/libraries/boost/generic.nix b/pkgs/development/libraries/boost/generic.nix
index 6358df1a555..08a71e85adb 100644
--- a/pkgs/development/libraries/boost/generic.nix
+++ b/pkgs/development/libraries/boost/generic.nix
@@ -127,7 +127,14 @@ stdenv.mkDerivation {
     extraPrefix = "libs/context/";
   })
   ++ optional (and (versionAtLeast version "1.70") (!versionAtLeast version "1.73")) ./cmake-paths.patch
-  ++ optional (versionAtLeast version "1.73") ./cmake-paths-173.patch;
+  ++ optional (versionAtLeast version "1.73") ./cmake-paths-173.patch
+  ++ optional (version == "1.77.0") (fetchpatch {
+    url = "https://github.com/boostorg/math/commit/7d482f6ebc356e6ec455ccb5f51a23971bf6ce5b.patch";
+    sha256 = "sha256-KlmIbixcds6GyKYt1fx5BxDIrU7msrgDdYo9Va/KJR4=";
+    stripLen = 2;
+    extraPrefix = "";
+    includes = [ "boost/math/special_functions/detail/bernoulli_details.hpp" ];
+  });
 
   meta = {
     homepage = "http://boost.org/";