From 45874e67018bd160525586f648c75ea084165119 Mon Sep 17 00:00:00 2001 From: Raphael Robatsch Date: Sun, 11 Dec 2022 21:35:34 +0000 Subject: [PATCH] openturns: fix build --- pkgs/development/libraries/openturns/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/libraries/openturns/default.nix b/pkgs/development/libraries/openturns/default.nix index ae95a45dd392..4c80c4b9ac81 100644 --- a/pkgs/development/libraries/openturns/default.nix +++ b/pkgs/development/libraries/openturns/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch , cmake , swig , boost @@ -34,6 +35,15 @@ stdenv.mkDerivation rec { sha256 = "sha256-QeapH937yGnK6oD+rgIERePxz6ooxGpOx6x9LyFDt2A="; }; + patches = [ + # Fix build with primesieve 11, https://github.com/openturns/openturns/pull/2187 + # Remove with next version update. + (fetchpatch { + url = "https://github.com/openturns/openturns/commit/a85061f89a5763061467beac516c1355fe81b9be.patch"; + hash = "sha256-z28ipBuX3b5UFEnKuDfp+kMI5cUcwXVz/8WZHlICnvE="; + }) + ]; + nativeBuildInputs = [ cmake ] ++ lib.optional enablePython python3Packages.sphinx; buildInputs = [ swig