summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorDavid Elsing <david.elsing@posteo.net>2025-06-03 22:56:54 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-07-08 12:17:15 +0100
commitaa82bfff213126468ee1c69052e3600059c3d0e3 (patch)
tree004d69f86d98f5e40dacb9d441f115ea1dd76162 /gnu
parent18387e966b1f748c8f4f006c77b9a3a398b0ad61 (diff)
gnu: Add fortran-dftd4.
* gnu/packages/fortran-xyz.scm (fortran-dftd4): New variable. Change-Id: I22adf29342a13d9c6d707f2e7ed1906c664aaa55 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/fortran-xyz.scm35
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/fortran-xyz.scm b/gnu/packages/fortran-xyz.scm
index d9b0ac32616..bd297076004 100644
--- a/gnu/packages/fortran-xyz.scm
+++ b/gnu/packages/fortran-xyz.scm
@@ -33,6 +33,41 @@
;;;
;;; Code:
+(define-public fortran-dftd4
+ (package
+ (name "fortran-dftd4")
+ (version "3.7.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/dftd4/dftd4")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0alsvzgdkmw80wfpsds31pzgcr962xhq9q7yvc26jxgrn444yb3n"))))
+ (build-system meson-build-system)
+ (arguments
+ (list
+ #:configure-flags
+ #~(list (string-append "-Dfortran_link_args=-Wl,-rpath="
+ #$output "/lib"))))
+ (native-inputs
+ (list gfortran
+ pkg-config
+ python-minimal))
+ (inputs
+ (list fortran-mctc-lib
+ fortran-mstore
+ fortran-multicharge
+ lapack))
+ (home-page "https://github.com/dftd4/dftd4")
+ (synopsis "Implementation of the DFT-D4 dispersion correction")
+ (description
+ "This library provides an implementation of the DFT-D4 dispersion
+correction with both a Fortran and a C interface.")
+ (license license:lgpl3+)))
+
(define-public fortran-mctc-lib
(package
(name "fortran-mctc-lib")