From 8668f940c5fc6163f1381e45765de74578a02453 Mon Sep 17 00:00:00 2001 From: Andrew Childs Date: Tue, 15 Feb 2022 12:02:36 +0900 Subject: [PATCH] boost: refine assertion requiring pth support in clang (#159990) The pth feature was only used by boost's build with clang on linux, and should not prevent building on darwin. --- pkgs/development/libraries/boost/generic.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/boost/generic.nix b/pkgs/development/libraries/boost/generic.nix index 6358df1a555c..490693035707 100644 --- a/pkgs/development/libraries/boost/generic.nix +++ b/pkgs/development/libraries/boost/generic.nix @@ -31,8 +31,8 @@ assert enableShared || enableStatic; assert enablePython -> stdenv.hostPlatform == stdenv.buildPlatform; assert enableNumpy -> enablePython; -# Boost <1.69 can't be build with clang >8, because pth was removed -assert with lib; ((toolset == "clang" && !(versionOlder stdenv.cc.version "8.0.0")) -> !(versionOlder version "1.69")); +# Boost <1.69 can't be built on linux with clang >8, because pth was removed +assert with lib; ((stdenv.isLinux && toolset == "clang" && !(versionOlder stdenv.cc.version "8.0.0")) -> !(versionOlder version "1.69")); with lib; let