From 8a236e246ab1aceea6e5b181f0d566be6bb3a614 Mon Sep 17 00:00:00 2001 From: yurket Date: Sat, 12 Nov 2022 11:32:45 -0800 Subject: [PATCH] gplates: fix failing build Started failing after the commit 11ea0e99b7137 (Python 3.9->3.10 upgrade) with error: CMake Error at .../lib/cmake/Boost-1.75.0/BoostConfig.cmake:141 (find_package): Could not find a package configuration file provided by boost_python310 It appears that boost <= 1.78 fails to find Python with double digits in the minor version (like X.YZ) --- pkgs/applications/science/misc/gplates/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/science/misc/gplates/default.nix b/pkgs/applications/science/misc/gplates/default.nix index 7cbf37fcaf8a..835c66c3251f 100644 --- a/pkgs/applications/science/misc/gplates/default.nix +++ b/pkgs/applications/science/misc/gplates/default.nix @@ -14,13 +14,15 @@ , libGLU , mpfr , proj -, python3 +# build with Python 3.10 fails, because boost <= 1.78 can't find +# pythons with double digits in minor versions, like X.YZ +, python39 , qtxmlpatterns , qwt }: let - python = python3.withPackages (ps: with ps; [ + python = python39.withPackages (ps: with ps; [ numpy ]); boost' = boost.override {