Subject: [bug#76728] [PATCH] v2

From: Jakob Kirsch <[email-masked]>
Date: Tue, 4 Mar 2025 20:16:26 +0100

This is the v2 with wrap-program instead of propagated-inputs.
From 5608c37f14b7b5d46f6ac0a31b4f0c073bd186aa Mon Sep 17 00:00:00 2001
Message-ID: <5608[email-masked]>
From: Jakob Kirsch <[email-masked]>
Date: Tue, 4 Mar 2025 20:15:05 +0100
Subject: [PATCH v2] gnu: avogadro2: Update to 1.93.0.

* gnu/packages/chemistry.scm (avogadro2): Update to 1.93.0.

Change-Id: Ic133ed59aac11d9f48443c1d297d69060514d01f
---
 gnu/packages/chemistry.scm | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/chemistry.scm b/gnu/packages/chemistry.scm
index bd27bfad7a..78fedfd34f 100644
--- a/gnu/packages/chemistry.scm
+++ b/gnu/packages/chemistry.scm
@@ -122,17 +122,23 @@ (define-public avogadro2
              (url "https://github.com/OpenChemistry/avogadroapp")
              (commit version)))
        (sha256
-        (base32
-         "1z3pjlwja778a1dmvx9aqz2hlw5q9g3kqxhm9slz08452600jsv7"))
+        (base32 "1z3pjlwja778a1dmvx9aqz2hlw5q9g3kqxhm9slz08452600jsv7"))
        (file-name (git-file-name name version))))
     (build-system cmake-build-system)
-    (native-inputs
-     (list eigen pkg-config))
-    (inputs
-     (list avogadrolibs hdf5 molequeue qtbase-5))
+    (native-inputs (list eigen pkg-config))
+    (inputs (list avogadrolibs hdf5 molequeue qtbase-5))
     ;; TODO: Enable tests with "-DENABLE_TESTING" configure flag.
     (arguments
-     '(#:tests? #f))
+     (list
+      #:tests? #f
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'install 'wrap-program
+            (lambda _
+              (wrap-program (string-append #$output "/bin/avogadro2")
+                (list "PATH"
+                      'suffix
+                      (list (string-append #$openbabel "/bin")))))))))
     (home-page "https://www.openchemistry.org/projects/avogadro2/")
     (synopsis "Advanced molecule editor")
     (description

base-commit: c1ec9e8d53da209ba1d6f8466d03180d195d7334
--
2.48.1