Subject: [bug#46929] [PATCH v3 01/12] gnu: Modernize add-openmpi-to-dune-package

From: Felix Gruber <[email-masked]>
Date: Sat, 18 Dec 2021 13:36:49 +0000

* gnu/packages/maths.scm (add-openmpi-to-dune-package): Use
  modify-inputs.
---
 gnu/packages/maths.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 3bac086666..5c2c3d75d7 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -6729,8 +6729,8 @@ built on top of DUNE, the Distributed and Unified Numerics Environment.")
         (if (dune-package? p)
             (package (inherit p)
               (name (string-append (package-name p) "-openmpi"))
-              (inputs `(,@(package-inputs p)
-                        ("openmpi" ,openmpi)))
+              (inputs (modify-inputs (package-inputs p)
+                        (append openmpi)))
               (arguments
                (substitute-keyword-arguments (package-arguments p)
                  ((#:phases phases '%standard-phases)
-- 
2.30.2