boost: unbreak build for 1.65 and 1.66 (#163216)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Markus Wamser 2022-03-23 03:51:12 +01:00 committed by GitHub
parent e67d3a3e14
commit 713648a19b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,6 +126,13 @@ stdenv.mkDerivation {
stripLen = 1; stripLen = 1;
extraPrefix = "libs/context/"; extraPrefix = "libs/context/";
}) })
# Fix compiler warning with GCC >= 8; TODO: patch may apply to older versions
++ optional (versionAtLeast version "1.65" && versionOlder version "1.67")
(fetchpatch {
url = "https://github.com/boostorg/mpl/commit/f48fd09d021db9a28bd7b8452c175897e1af4485.patch";
sha256 = "15d2a636hhsb1xdyp44x25dyqfcaws997vnp9kl1mhzvxjzz7hb0";
stripLen = 1;
})
++ optional (and (versionAtLeast version "1.70") (!versionAtLeast version "1.73")) ./cmake-paths.patch ++ 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 { ++ optional (version == "1.77.0") (fetchpatch {