summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhislain Vaillant <ghislain.vaillant@inria.fr>2026-08-20 13:54:24 +0200
committerGhislain Vaillant <ghislain.vaillant@inria.fr>2026-08-20 13:56:38 +0200
commitd744309b67f990aebcf8f410599ef2148be7f070 (patch)
tree57b79188b94dd30ece5bfc4aecb7a8f74169e56b
parent4fc61aa9128f452e9a327a9efc409f4097846d20 (diff)
hep: pythia: Build with yoda.
* guix-science/packages/hep.scm (pythia) [arguments]<#:configure-flags>: Enable yoda. <#:phases>: Fix yoda configuration in examples. Add test for yoda. [inputs]: Add yoda.
-rw-r--r--guix-science/packages/hep.scm19
1 files changed, 17 insertions, 2 deletions
diff --git a/guix-science/packages/hep.scm b/guix-science/packages/hep.scm
index cdbd076..47a886a 100644
--- a/guix-science/packages/hep.scm
+++ b/guix-science/packages/hep.scm
@@ -874,7 +874,9 @@ HEP packages against.")
874 (string-append "--with-hepmc3=" 874 (string-append "--with-hepmc3="
875 #$(this-package-input "hepmc3")) 875 #$(this-package-input "hepmc3"))
876 (string-append "--with-root=" 876 (string-append "--with-root="
877 #$(this-package-input "root"))) 877 #$(this-package-input "root"))
878 (string-append "--with-yoda="
879 #$(this-package-input "yoda")))
878 #:phases 880 #:phases
879 #~(modify-phases %standard-phases 881 #~(modify-phases %standard-phases
880 (add-after 'unpack 'fix-gzip-configuration 882 (add-after 'unpack 'fix-gzip-configuration
@@ -896,6 +898,12 @@ HEP packages against.")
896 "\"\"" 898 "\"\""
897 "\"-DGZIP\"") " ")))))) 899 "\"-DGZIP\"") " "))))))
898 900
901 (add-after 'unpack 'fix-yoda-configuration
902 (lambda _
903 (substitute* "examples/Makefile"
904 (("\\$\\(YODA_CONFIG\\) \\-\\-libs")
905 "$(YODA_CONFIG) --cppflags --libs"))))
906
899 (add-after 'unpack 'link-with-new-dtags 907 (add-after 'unpack 'link-with-new-dtags
900 (lambda _ 908 (lambda _
901 (substitute* "configure" 909 (substitute* "configure"
@@ -936,11 +944,18 @@ HEP packages against.")
936 (list 944 (list
937 ;; standalone 945 ;; standalone
938 "main101" 946 "main101"
947 ;; with yoda
948 "main114"
939 ;; with hepmc3 949 ;; with hepmc3
940 "main131" 950 "main131"
941 ;; with fastjet and root 951 ;; with fastjet and root
942 "main142")))))))))) 952 "main142"))))))))))
943 (inputs (list fastjet hepmc3 lhapdf root zlib)) 953 (inputs (list fastjet
954 hepmc3
955 lhapdf
956 root
957 yoda
958 zlib))
944 (native-inputs (list rsync)) 959 (native-inputs (list rsync))
945 (home-page "https://pythia.org/") 960 (home-page "https://pythia.org/")
946 (synopsis "Monte Carlo generator for high-energy physics collision events") 961 (synopsis "Monte Carlo generator for high-energy physics collision events")