diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index f6f4a08aab..975884e881 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -1827,7 +1827,10 @@ (define-public r-rmpi (properties `((upstream-name . "Rmpi"))) (build-system r-build-system) (arguments - `(#:configure-flags '("--configure-args=\"--with-Rmpi-type=OPENMPI\""))) + `(#:configure-flags '("--configure-args=\"--with-Rmpi-type=OPENMPI\"") + #:phases (modify-phases %standard-phases + (add-before 'install 'mpi-setup + ,%openmpi-setup)))) (inputs `(("openmpi" ,openmpi))) (native-inputs