summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhislain Vaillant <ghislain.vaillant@inria.fr>2026-08-15 13:05:33 +0200
committerGhislain Vaillant <ghislain.vaillant@inria.fr>2026-08-15 23:48:41 +0200
commit2f23906e883cdd46adef2862d8d2ddfd5ce2274a (patch)
tree839277dbf5238aca8befe51f471cd5f081277aac
parentf1ceac92249dc3769aa10d81c99e717e506b535b (diff)
hep: Add rivet.
* guix-science/packages/hep.scm (rivet): New variable.
-rw-r--r--guix-science/packages/hep.scm59
1 files changed, 59 insertions, 0 deletions
diff --git a/guix-science/packages/hep.scm b/guix-science/packages/hep.scm
index 786d38f..b0ec428 100644
--- a/guix-science/packages/hep.scm
+++ b/guix-science/packages/hep.scm
@@ -646,6 +646,65 @@ HEP packages against.")
646particle collisions.") 646particle collisions.")
647 (license license:gpl2+))) 647 (license license:gpl2+)))
648 648
649(define-public rivet
650 (package
651 (name "rivet")
652 (version "4.1.3")
653 (source
654 (origin
655 (method git-fetch)
656 (uri (git-reference
657 (url "https://gitlab.com/hepcedar/rivet.git")
658 (commit (string-append "rivet-" version))))
659 (file-name (git-file-name name version))
660 (sha256
661 (base32 "033h2iz20japxwi4p2ia8zhl4d56smmvzjjml6khkr38g47hx6m7"))))
662 (build-system gnu-build-system)
663 (arguments
664 (list
665 #:configure-flags
666 #~(list (string-append "--with-fastjet="
667 #$(this-package-input "fastjet"))
668 (string-append "--with-fastjet-contrib="
669 #$(this-package-input "fastjet-contrib"))
670 (string-append "--with-hepmc3="
671 #$(this-package-input "hepmc3"))
672 (string-append "--with-yaml-cpp="
673 #$(this-package-input "yaml-cpp"))
674 (string-append "--with-yoda="
675 #$(this-package-input "yoda")))
676 #:phases
677 #~(modify-phases %standard-phases
678 (add-after 'unpack 'fix-runpath-validation
679 (lambda _
680 (let* ((lib (string-append #$output "/lib"))
681 (rpath (string-append "-Wl,-rpath=" lib)))
682 (substitute* "bin/rivet-build.in"
683 (("myldflags=\"\"")
684 (string-append "myldflags=\"" rpath "\"")))
685 (substitute* "pyext/build.py.in"
686 (("@LDFLAGS@")
687 (string-append rpath " @LDFLAGS@")))))))))
688 (inputs (list fastjet
689 fastjet-contrib
690 hdf5
691 hepmc3
692 yaml-cpp
693 yoda
694 zlib))
695 (native-inputs (list autoconf automake libtool python-cython
696 python-wrapper))
697 (home-page "https://rivet.hepforge.org/")
698 (synopsis "Robust Independent Validation of Experiment and Theory")
699 (description
700 "Rivet is a system for preservation of particle-collider analysis logic,
701analysis reinterpretation via MC simulations, and the validation and improvement
702of Monte Carlo event generator codes. It covers all aspects of collider physics,
703from unfolded precision measurements to reconstruction-level searches, and
704physics from the Standard Model to BSM theories, and from perturbative jet,
705boson and top-quarks to hadron decays, inclusive QCD, and Heavy Ion physics.")
706 (license license:gpl3)))
707
649(define-public yoda 708(define-public yoda
650 (package 709 (package
651 (name "yoda") 710 (name "yoda")