From ec46d5abcf276480318c29211b432afa8ad27672 Mon Sep 17 00:00:00 2001 From: Ghislain Vaillant Date: Wed, 26 Aug 2026 14:23:16 +0200 Subject: hep: Add xfitter. * guix-science/packages/hep.scm (xfitter): New variable. --- guix-science/packages/hep.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/guix-science/packages/hep.scm b/guix-science/packages/hep.scm index 6c56a3a..c22d166 100644 --- a/guix-science/packages/hep.scm +++ b/guix-science/packages/hep.scm @@ -1511,6 +1511,48 @@ level with the full top-quark and bottom-quark mass dependence in a generic two Higgs doublet model.") (license license:gpl2))) +(define-public xfitter + (package + (name "xfitter") + (version "2.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.cern.ch/fitters/xfitter.git") + (commit (string-append version "_Future_Freeze")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0sxlahbabvry6rzgf07xr6sm45c1sx6s55g72204n13gay1g3af1")))) + (build-system cmake-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (delete 'check) + (add-after 'install 'check + (lambda _ + (let ((xfitter (string-append #$output "/bin/xfitter"))) + (with-directory-excursion "../source/examples/defaultNNLO" + (invoke xfitter)))))))) + (inputs (list gsl + openblas + qcdnum + root + yaml-cpp + zlib)) + (native-inputs (list gfortran pkg-config)) + (home-page "https://xfitter.hepforge.org/") + (synopsis "PDF fit program for HERA proton parton densities") + (description + "@code{xFitter} is an open source QCD fit framework desinged to extract +PDFs and assess the impact of new data. The @code{xFitter} project is is a +common initiative by the H1 and ZEUS collaborations and extended to the LHC +collaborations to provide precision QCD analyses. xFitter has been used as one +of the main software packages for the determination of the HERA proton parton +densities, HERAPDFs.") + (license license:gpl3))) + (define-public yoda (package (name "yoda") -- cgit v1.2.3