From cbfe2fc89bb774ce2cd22db4092a4b35bfcadb3e Mon Sep 17 00:00:00 2001 From: "Markus S. Wamser" Date: Mon, 7 Mar 2022 23:19:06 +0100 Subject: [PATCH] boost: suppress GCC warnings on older versions (cherry picked from commit c742a5c5375494e85d733c2dd692946998b93479) --- 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 fdc8f7c21f18..932abf6c173c 100644 --- a/pkgs/development/libraries/boost/generic.nix +++ b/pkgs/development/libraries/boost/generic.nix @@ -126,6 +126,13 @@ stdenv.mkDerivation { stripLen = 1; 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 (versionAtLeast version "1.73") ./cmake-paths-173.patch;