diff options
| author | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-08-24 15:23:29 +0200 |
|---|---|---|
| committer | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-08-24 16:55:25 +0200 |
| commit | 5dbc7d0f7b2d655b5c6305850f77b6aca0dcf28f (patch) | |
| tree | e2ccc0aaf0930d1d43d47732206e12f7c873ed31 | |
| parent | acf9e66c5f13517914a62cbe04f147b54f478d3d (diff) | |
hep: Add recola2.
* guix-science/packages/hep.scm (recola2): New variable.
| -rw-r--r-- | guix-science/packages/hep.scm | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/guix-science/packages/hep.scm b/guix-science/packages/hep.scm index 3140aff..aa8c990 100644 --- a/guix-science/packages/hep.scm +++ b/guix-science/packages/hep.scm | |||
| @@ -1163,6 +1163,88 @@ numerical computation of EW and QCD amplitudes in the Standard Model at | |||
| 1163 | next-to-leading order.") | 1163 | next-to-leading order.") |
| 1164 | (license license:gpl3))) | 1164 | (license license:gpl3))) |
| 1165 | 1165 | ||
| 1166 | (define-public recola2 | ||
| 1167 | (package | ||
| 1168 | (name "recola2") | ||
| 1169 | (version "2.3.0") | ||
| 1170 | (source | ||
| 1171 | (origin | ||
| 1172 | (method git-fetch) | ||
| 1173 | (uri (git-reference | ||
| 1174 | (url "https://gitlab.com/recola/recola2.git") | ||
| 1175 | (commit version))) | ||
| 1176 | (file-name (git-file-name name version)) | ||
| 1177 | (sha256 | ||
| 1178 | (base32 "1xp0k1mc4c74k3hxb13s9qzdddwzmz3pazr5k8nmyixzdq1gii0j")))) | ||
| 1179 | (build-system cmake-build-system) | ||
| 1180 | (arguments | ||
| 1181 | (list | ||
| 1182 | #:configure-flags | ||
| 1183 | #~(list "-Dwith_smtests:BOOL=ON" | ||
| 1184 | (string-append "-Dcollier_DIR:PATH=" | ||
| 1185 | #$(this-package-input "collier") "/lib/cmake") | ||
| 1186 | (string-append "-DMDL_SEARCH_PATH:PATH=" | ||
| 1187 | #$(this-package-input "recola2-modelfile-sm") | ||
| 1188 | "/lib/cmake")) | ||
| 1189 | #:imported-modules (append %cmake-build-system-modules | ||
| 1190 | %pyproject-build-system-modules) | ||
| 1191 | #:modules '((guix build cmake-build-system) | ||
| 1192 | ((guix build pyproject-build-system) | ||
| 1193 | #:prefix py:) | ||
| 1194 | (guix build utils)) | ||
| 1195 | #:phases | ||
| 1196 | #~(modify-phases %standard-phases | ||
| 1197 | ;; Requires install first. | ||
| 1198 | (delete 'check) | ||
| 1199 | |||
| 1200 | (add-after 'install 'check | ||
| 1201 | (lambda* (#:key tests? #:allow-other-keys) | ||
| 1202 | (when tests? | ||
| 1203 | (invoke "make" "check")))) | ||
| 1204 | |||
| 1205 | (add-before 'check 'add-installed-pythonpath | ||
| 1206 | (lambda* (#:key inputs outputs #:allow-other-keys) | ||
| 1207 | (py:add-installed-pythonpath inputs outputs)))))) | ||
| 1208 | (inputs (list collier recola2-modelfile-sm)) | ||
| 1209 | (native-inputs (list gfortran python-wrapper)) | ||
| 1210 | (home-page "https://recola.gitlab.io/") | ||
| 1211 | (synopsis "Recursive Computation of 1-Loop Amplitudes (version 2)") | ||
| 1212 | (description | ||
| 1213 | "Recola2 is a Fortran95 computer program for the automated generation and | ||
| 1214 | numerical evaluation of amplitudes in general quantum field theories at one-loop | ||
| 1215 | order. It is the successor of Recola and extends it by additional features.") | ||
| 1216 | (license license:gpl3))) | ||
| 1217 | |||
| 1218 | (define-public recola2-modelfile-sm | ||
| 1219 | (let ((commit "83cc243dbce331e41905bd0d95e232f62263d380") | ||
| 1220 | (revision "0") | ||
| 1221 | (version "2.2.3")) | ||
| 1222 | (package | ||
| 1223 | (name "recola2-modelfile-sm") | ||
| 1224 | (version (git-version version revision commit)) | ||
| 1225 | (source | ||
| 1226 | (origin | ||
| 1227 | (method git-fetch) | ||
| 1228 | (uri (git-reference | ||
| 1229 | (url "https://gitlab.com/recola/models/sm.git") | ||
| 1230 | (commit commit))) | ||
| 1231 | (file-name (git-file-name name version)) | ||
| 1232 | (sha256 | ||
| 1233 | (base32 "0i4pc54b0y5lpaylxvkrbrp4d3aaxd1fd7wx5ycf145zgl64df7n")))) | ||
| 1234 | (build-system cmake-build-system) | ||
| 1235 | (arguments | ||
| 1236 | (list | ||
| 1237 | #:tests? #f ;no tests | ||
| 1238 | #:configure-flags | ||
| 1239 | #~(list (string-append "-DCOLLIER_LIB_PATH:PATH=" | ||
| 1240 | #$(this-package-input "collier") "/lib/cmake")))) | ||
| 1241 | (inputs (list collier)) | ||
| 1242 | (native-inputs (list gfortran)) | ||
| 1243 | (home-page "https://recola.gitlab.io/modelfiles/sm.html") | ||
| 1244 | (synopsis "Standard model for Recola2") | ||
| 1245 | (description "Standard model for Recola2.") | ||
| 1246 | (license license:gpl3)))) | ||
| 1247 | |||
| 1166 | (define-public sherpa | 1248 | (define-public sherpa |
| 1167 | (package | 1249 | (package |
| 1168 | (name "sherpa") | 1250 | (name "sherpa") |
