guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: Add lammps-serial.


From: guix-commits
Subject: branch master updated: gnu: Add lammps-serial.
Date: Mon, 25 Dec 2023 17:21:42 -0500

This is an automated email from the git hooks/post-receive script.

rekado pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new a4a14ab6d7 gnu: Add lammps-serial.
a4a14ab6d7 is described below

commit a4a14ab6d79f6f1f926a82dd50db4655232042b7
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Dec 25 23:21:07 2023 +0100

    gnu: Add lammps-serial.
    
    * gnu/packages/bioinformatics.scm (lammps-serial): New variable.
    
    Change-Id: Ifd189a28f423e43ddda8654f758486737eef4a3c
---
 gnu/packages/bioinformatics.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 01718426ee..de37d19264 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -4358,6 +4358,37 @@ atoms or, more generically, as a parallel particle 
simulator at the atomic,
 meso, or continuum scale.")
       (license license:gpl2+))))
 
+(define-public lammps-serial
+  (package
+    (inherit lammps)
+    (name "lammps-serial")
+    (arguments
+     (substitute-keyword-arguments (package-arguments lammps)
+       ((#:make-flags flags)
+        '(list "CC=gcc" "serial"
+               "LMP_INC=-DLAMMPS_GZIP \
+-DLAMMPS_JPEG -DLAMMPS_PNG -DLAMMPS_FFMPEG -DLAMMPS_MEMALIGN=64"
+               "LIB=-gz -ljpeg -lpng -lavcodec"))
+       ((#:phases phases)
+        #~(modify-phases #$phases
+            (replace 'configure
+              (lambda _
+                (substitute* "MAKE/Makefile.serial"
+                  (("SHELL =.*")
+                   (string-append "SHELL=" (which "bash") "\n"))
+                  (("cc ") "gcc "))
+                (substitute* "Makefile"
+                  (("SHELL =.*")
+                   (string-append "SHELL=" (which "bash") "\n")))))
+            (replace 'install
+             (lambda _
+               (let ((bin (string-append #$output "/bin")))
+                 (mkdir-p bin)
+                 (install-file "lmp_serial" bin))))))))
+    (inputs
+     (modify-inputs (package-inputs lammps)
+       (delete "openmpi")))))
+
 (define-public libbigwig
   (package
     (name "libbigwig")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]