diff options
| author | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-08-15 23:20:34 +0200 |
|---|---|---|
| committer | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-08-15 23:48:42 +0200 |
| commit | 7c3fdbdba04d50720983b9d347f1752b61cdc02d (patch) | |
| tree | 2f0fcd2defc893b73c4acd93498f59b8720404ec | |
| parent | b217aeae129925fcda5ba426c0bc80e812fb5a3b (diff) | |
hep: Add chaplin.
* guix-science/packages/hep.scm (chaplin): New variable.
| -rw-r--r-- | guix-science/packages/hep.scm | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/guix-science/packages/hep.scm b/guix-science/packages/hep.scm index 5287e6a..c09a07e 100644 --- a/guix-science/packages/hep.scm +++ b/guix-science/packages/hep.scm | |||
| @@ -37,6 +37,26 @@ | |||
| 37 | #:use-module (guix packages) | 37 | #:use-module (guix packages) |
| 38 | #:use-module (guix utils)) | 38 | #:use-module (guix utils)) |
| 39 | 39 | ||
| 40 | (define-public chaplin | ||
| 41 | (package | ||
| 42 | (name "chaplin") | ||
| 43 | (version "1.2") | ||
| 44 | (source | ||
| 45 | (origin | ||
| 46 | (method url-fetch) | ||
| 47 | (uri (string-append "https://chaplin.hepforge.org/code/chaplin-" | ||
| 48 | version ".tar")) | ||
| 49 | (sha256 | ||
| 50 | (base32 "0jabdpbs2g2xza8mr538mx0ajgvd8585956yrqvcxr6lbyc2sz7i")))) | ||
| 51 | (build-system gnu-build-system) | ||
| 52 | (native-inputs (list gfortran)) | ||
| 53 | (home-page "https://chaplin.hepforge.org/") | ||
| 54 | (synopsis "Complex Harmonic Polylogarithms in FORTRAN") | ||
| 55 | (description | ||
| 56 | "@code{CHAPLIN} enables you to numerically evaluate Harmonic polylogarithms | ||
| 57 | up to weight 4 for any complex argument.") | ||
| 58 | (license license:gpl3))) | ||
| 59 | |||
| 40 | (define (replace-char old-char new-char str) | 60 | (define (replace-char old-char new-char str) |
| 41 | (string-map (lambda (char) | 61 | (string-map (lambda (char) |
| 42 | (if (char=? char old-char) new-char char)) str)) | 62 | (if (char=? char old-char) new-char char)) str)) |
