From 3ffd91423719cdeba4e98d083087dc9d3213e862 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 17 Nov 2023 12:16:01 +0000 Subject: [PATCH] gnu: python-pynbody: Prepare for cross compilation. * gnu/packages/astronomy.scm (python-pynbody)[arguments]{phases}: Add 'set-compiler phase. Change-Id: I64feabbdd76679d5a86a85a9f50cd0be90f60c1c Signed-off-by: Eric Bavier --- gnu/packages/astronomy.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 85180e40ad..e42b87144c 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -3575,7 +3575,12 @@ functions, so that they can be called with scalar or array inputs.") "--ignore=tests/sph_smooth_test.py" "--ignore=tests/subfind_test.py" "--ignore=tests/subfindhdf_gadget4_test.py" - "--ignore=tests/tipsy_test.py"))) + "--ignore=tests/tipsy_test.py") + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'set-compiler + (lambda _ + (setenv "CC" #$(cc-for-target))))))) (native-inputs (list python-cython python-pandas