diff options
| author | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-08-13 18:38:43 +0200 |
|---|---|---|
| committer | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-08-15 23:21:03 +0200 |
| commit | 8bea9ce2e79d3db8f750e3a90ba9b471ab5bce0a (patch) | |
| tree | edbafeeb98497f3b28908d488e7414c31c8f159d | |
| parent | e8772e928d38e36cc461ee7cfe0dc71894a60b57 (diff) | |
hep: Add fastjet.
* guix-science/packages/hep.scm (fastjet): New variable.
| -rw-r--r-- | guix-science/packages/hep.scm | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/guix-science/packages/hep.scm b/guix-science/packages/hep.scm index bb9117f..5edade4 100644 --- a/guix-science/packages/hep.scm +++ b/guix-science/packages/hep.scm | |||
| @@ -22,9 +22,11 @@ | |||
| 22 | #:use-module (gnu packages python-xyz) | 22 | #:use-module (gnu packages python-xyz) |
| 23 | #:use-module (gnu packages serialization) | 23 | #:use-module (gnu packages serialization) |
| 24 | #:use-module (gnu packages statistics) | 24 | #:use-module (gnu packages statistics) |
| 25 | #:use-module (gnu packages swig) | ||
| 25 | #:use-module (guix build-system cmake) | 26 | #:use-module (guix build-system cmake) |
| 26 | #:use-module (guix build-system gnu) | 27 | #:use-module (guix build-system gnu) |
| 27 | #:use-module (guix build-system pyproject) | 28 | #:use-module (guix build-system pyproject) |
| 29 | #:use-module (guix download) | ||
| 28 | #:use-module (guix gexp) | 30 | #:use-module (guix gexp) |
| 29 | #:use-module (guix git) | 31 | #:use-module (guix git) |
| 30 | #:use-module (guix git-download) | 32 | #:use-module (guix git-download) |
| @@ -77,6 +79,64 @@ package.") | |||
| 77 | 79 | ||
| 78 | (define-public clhep clhep-2.4.7.2) | 80 | (define-public clhep clhep-2.4.7.2) |
| 79 | 81 | ||
| 82 | (define-public fastjet | ||
| 83 | (package | ||
| 84 | (name "fastjet") | ||
| 85 | (version "3.5.1") | ||
| 86 | (source | ||
| 87 | (origin | ||
| 88 | (method git-fetch) | ||
| 89 | (uri (git-reference | ||
| 90 | (url "https://gitlab.com/fastjet/fastjet.git") | ||
| 91 | (commit (string-append "fastjet-" version)))) | ||
| 92 | (file-name (git-file-name name version)) | ||
| 93 | (sha256 | ||
| 94 | (base32 "1zsil6bs5ly3dm8b4mipj6gblbiddkd4q8z5rml777di2kwkz4wi")))) | ||
| 95 | (build-system gnu-build-system) | ||
| 96 | (arguments | ||
| 97 | (list | ||
| 98 | #:configure-flags | ||
| 99 | #~(list "--enable-allcxxplugins" "--enable-pyext" "--enable-swig") | ||
| 100 | #:phases | ||
| 101 | #~(modify-phases %standard-phases | ||
| 102 | (add-after 'unpack 'use-system-siscone | ||
| 103 | (lambda _ | ||
| 104 | (substitute* "example/Makefile.am" | ||
| 105 | (("03_plugin_LDADD \\+=.*SISCone.*") | ||
| 106 | (string-append "03_plugin_LDADD+=" | ||
| 107 | "../plugins/SISCone/libSISConePlugin.la" "\n")) | ||
| 108 | (("fastjet_areas_LDADD \\+=.*SISCone.*") | ||
| 109 | (string-append "fastjet_areas_LDADD+=" | ||
| 110 | "../plugins/SISCone/libSISConePlugin.la" "\n")) | ||
| 111 | (("fastjet_timing_plugins_LDADD \\+=.*SISCone.*") | ||
| 112 | (string-append "fastjet_timing_plugins_LDADD+=" | ||
| 113 | "../plugins/SISCone/libSISConePlugin.la" "\n"))) | ||
| 114 | (substitute* "plugins/SISCone/Makefile.am" | ||
| 115 | (("SUBDIRS =.*") | ||
| 116 | "SUBDIRS = fastjet .\n") | ||
| 117 | (("libSISConePlugin_la_CXXFLAGS =.*") | ||
| 118 | (string-append "libSISConePlugin_la_CXXFLAGS=" | ||
| 119 | "$(AM_CXXFLAGS) -I$(srcdir) " | ||
| 120 | "-I$(srcdir)/../../include" "\n")) | ||
| 121 | (("libSISConePlugin_la_LIBADD =.*") | ||
| 122 | (string-append "libSISConePlugin_la_LIBADD=" | ||
| 123 | "-lsiscone -lsiscone_spherical" "\n")))))))) | ||
| 124 | (propagated-inputs (list siscone)) | ||
| 125 | (native-inputs (list autoconf | ||
| 126 | automake | ||
| 127 | libtool | ||
| 128 | python | ||
| 129 | swig)) | ||
| 130 | (home-page "https://fastjet.fr/") | ||
| 131 | (synopsis "Software package for jet finding in collisions") | ||
| 132 | (description | ||
| 133 | "The FastJet package provides a fast implementation of several | ||
| 134 | longitudinally invariant sequential recombination jet algorithms, in particular | ||
| 135 | the longitudinally invariant k_t jet algorithm, the inclusive longitudinally | ||
| 136 | invariant version of the Cambridge/Aachen jet-algorithm, and the inclusive | ||
| 137 | anti-k_t algorithm.") | ||
| 138 | (license license:gpl2+))) | ||
| 139 | |||
| 80 | (define-public hepmc3 | 140 | (define-public hepmc3 |
| 81 | (package | 141 | (package |
| 82 | (name "hepmc3") | 142 | (name "hepmc3") |
