[bug#76728] v2

Message ID Z8dRinHG_7y54YUj@kernelpanicroom
State New
Headers
Series [bug#76728] v2 |

Commit Message

Jakob Kirsch March 4, 2025, 7:16 p.m. UTC
  This is the v2 with wrap-program instead of propagated-inputs.
From 5608c37f14b7b5d46f6ac0a31b4f0c073bd186aa Mon Sep 17 00:00:00 2001
Message-ID: <5608c37f14b7b5d46f6ac0a31b4f0c073bd186aa.1741115763.git.jakob.kirsch@web.de>
From: Jakob Kirsch <jakob.kirsch@web.de>
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(-)


base-commit: c1ec9e8d53da209ba1d6f8466d03180d195d7334
--
2.48.1
  

Patch

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