summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain GARBAGE <romain.garbage@inria.fr>2025-10-27 16:16:02 +0100
committerRomain GARBAGE <romain.garbage@inria.fr>2025-11-05 09:15:13 +0100
commit661f4c5e2d51fde72ff92d28811b5ecabbcdac0a (patch)
treeea3d3671dc3f6cf02cec6164aa216e36eaefde08
parent8b2bf44e0fd7c9719817582de515947d5dcb21c8 (diff)
chemistry: Add plumed.
* guix-science/packages/chemistry.scm (plumed): New variable.
-rw-r--r--guix-science/packages/chemistry.scm59
1 files changed, 57 insertions, 2 deletions
diff --git a/guix-science/packages/chemistry.scm b/guix-science/packages/chemistry.scm
index 7b48278..069e66a 100644
--- a/guix-science/packages/chemistry.scm
+++ b/guix-science/packages/chemistry.scm
@@ -11,14 +11,15 @@
11 #:use-module (gnu packages autotools) 11 #:use-module (gnu packages autotools)
12 #:use-module (gnu packages base) 12 #:use-module (gnu packages base)
13 #:use-module (gnu packages bash) 13 #:use-module (gnu packages bash)
14 #:use-module (gnu packages compression)
14 #:use-module (gnu packages gcc) 15 #:use-module (gnu packages gcc)
15 #:use-module (gnu packages maths) 16 #:use-module (gnu packages maths)
16 #:use-module (gnu packages mpi) 17 #:use-module (gnu packages mpi)
17 #:use-module (gnu packages python)
18 #:use-module (gnu packages perl) 18 #:use-module (gnu packages perl)
19 #:use-module (gnu packages wget)
20 #:use-module (gnu packages pkg-config) 19 #:use-module (gnu packages pkg-config)
20 #:use-module (gnu packages python)
21 #:use-module (gnu packages version-control) 21 #:use-module (gnu packages version-control)
22 #:use-module (gnu packages wget)
22 #:use-module (guix-science packages fortran)) 23 #:use-module (guix-science packages fortran))
23 24
24(define-public wannier90 25(define-public wannier90
@@ -138,6 +139,60 @@ programming languages and frameworks (Fortran, C, Python C bindings,
138Python/Numpy, Python/Tensorflow).") 139Python/Numpy, Python/Tensorflow).")
139 (license license:mpl2.0))) 140 (license license:mpl2.0)))
140 141
142(define-public plumed
143 (package
144 (name "plumed")
145 (version "2.10.0")
146 (source
147 (origin
148 (method git-fetch)
149 (uri (git-reference
150 (url "https://github.com/plumed/plumed2")
151 (commit (string-append "v" version))))
152 (file-name (git-file-name name version))
153 (sha256 (base32 "1n49dd8rnklflxnyfsn5l7k49xi2ncsvfqvd8v0b4vydwnxzqmb8"))))
154 (build-system gnu-build-system)
155 (arguments
156 (list
157 #:configure-flags
158 #~(list
159 (string-append "CXX=" #$(this-package-input "openmpi") "/bin/mpic++")
160 (string-append "LDFLAGS=-lopenblas")
161 (string-append "MPIEXEC=" #$(this-package-input "openmpi") "/bin/mpirun")
162 ;; Fix runpath validation error.
163 "--enable-rpath")
164 ;; Prevent non reproducible timeouts.
165 #:parallel-tests? #f
166 #:phases
167 #~(modify-phases %standard-phases
168 (add-before 'check 'mpi-setup #$%openmpi-setup)
169 (add-before 'check 'fix-tests
170 (lambda _
171 (for-each delete-file-recursively
172 ;; Need missing data.
173 '("regtest/basic/rt-make-7"
174 "regtest/basic/rt-make-subprocess"
175 "regtest/basic/rt-vimsyntax"
176 ;; Need too much resources to pass on CI.
177 "regtest/basic/rt-NeigbourlistInitializationError")))))))
178 (native-inputs
179 (list pkg-config))
180 (inputs
181 (list fftw
182 gsl
183 openmpi
184 openblas
185 zlib))
186 (home-page "https://www.plumed.org/")
187 (synopsis "The community-developed PLUgin for MolEcular Dynamics")
188 (description "PLUMED is a library that provides a wide range of different methods,
189which include: enhanced-sampling algorithms, free-energy methods,
190tools to analyze the vast amounts of data produced by molecular
191dynamics (MD) simulations. These techniques can be used in combination
192with a large toolbox of collective variables that describe complex
193processes in physics, chemistry, material science, and biology.")
194 (license license:lgpl3+)))
195
141(define-public quantum-espresso 196(define-public quantum-espresso
142 (package 197 (package
143 (name "quantum-espresso") 198 (name "quantum-espresso")