about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2019-03-18 22:56:16 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2019-04-26 21:54:57 -0400
commita2e8e6ffc90066a447db50a04599bcabd7f9485b (patch)
tree0adbe18d060b84eab833b588f2663bc752c9686d
parent43cda1b854f034ccb2a9dda64ed7279b25a44b21 (diff)
downloadnixlib-a2e8e6ffc90066a447db50a04599bcabd7f9485b.tar
nixlib-a2e8e6ffc90066a447db50a04599bcabd7f9485b.tar.gz
nixlib-a2e8e6ffc90066a447db50a04599bcabd7f9485b.tar.bz2
nixlib-a2e8e6ffc90066a447db50a04599bcabd7f9485b.tar.lz
nixlib-a2e8e6ffc90066a447db50a04599bcabd7f9485b.tar.xz
nixlib-a2e8e6ffc90066a447db50a04599bcabd7f9485b.tar.zst
nixlib-a2e8e6ffc90066a447db50a04599bcabd7f9485b.zip
boost167: patch for macOS 10.12
-rw-r--r--pkgs/development/libraries/boost/1.67.nix32
1 files changed, 27 insertions, 5 deletions
diff --git a/pkgs/development/libraries/boost/1.67.nix b/pkgs/development/libraries/boost/1.67.nix
index 938892ef3554..406e63b9622b 100644
--- a/pkgs/development/libraries/boost/1.67.nix
+++ b/pkgs/development/libraries/boost/1.67.nix
@@ -3,11 +3,33 @@
 callPackage ./generic.nix (args // rec {
   version = "1.67.0";
 
-  patches = [ (fetchpatch {
-    url = "https://github.com/boostorg/lockfree/commit/12726cda009a855073b9bedbdce57b6ce7763da2.patch";
-    sha256 = "0x65nkwzv8fdacj8sw5njl3v63jj19dirrpklbwy6qpsncw7fc7h";
-    stripLen = 1;
-  })];
+  patches = [
+    (fetchpatch {
+      url = "https://github.com/boostorg/lockfree/commit/12726cda009a855073b9bedbdce57b6ce7763da2.patch";
+      sha256 = "0x65nkwzv8fdacj8sw5njl3v63jj19dirrpklbwy6qpsncw7fc7h";
+      stripLen = 1;
+    })
+  ] ++ stdenv.lib.optionals stdenv.cc.isClang [
+    # Fixes https://github.com/boostorg/atomic/issues/15
+    (fetchpatch {
+      url = https://github.com/boostorg/atomic/commit/6e14ca24dab50ad4c1fa8c27c7dd6f1cb791b534.patch;
+      sha256 = "102g35ygvv8cxagp9651284xk4vybk93q2fm577y4mdxf5k46b7a";
+      stripLen = 1;
+    })
+
+    # Needed for the next patch
+    (fetchpatch {
+      url = https://github.com/boostorg/asio/commit/38cb19719748ad56b14d73ca1fff5828f36e5894.patch;
+      sha256 = "0cj9cxz9rfbsx8p8f5alxx00dq3r7g0vh23j68bbxbs9gq1arq2n";
+      stripLen = 1;
+    })
+    # Fixes https://github.com/boostorg/asio/pull/91
+    (fetchpatch {
+      url = https://github.com/boostorg/asio/commit/43874d5497414c67655d901e48c939ef01337edb.patch;
+      sha256 = "1c2ds164s2ygvpb4785p4ncv8ywbpm08cphirb99xp4mqvb693is";
+      stripLen = 1;
+    })
+  ];
 
   src = fetchurl {
     url = "mirror://sourceforge/boost/boost_1_67_0.tar.bz2";