summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--guix-science/packages/physics.scm66
1 files changed, 66 insertions, 0 deletions
diff --git a/guix-science/packages/physics.scm b/guix-science/packages/physics.scm
new file mode 100644
index 0000000..30f61d4
--- /dev/null
+++ b/guix-science/packages/physics.scm
@@ -0,0 +1,66 @@
1;;;
2;;; Copyright © 2022 Emmanuel Medernach <Emmanuel.Medernach@iphc.cnrs.fr>
3;;; Copyright © 2023-2024 Jake Forster <jakecameron.forster@gmail.com>
4;;;
5;;; This program is free software; you can redistribute it and/or modify it
6;;; under the terms of the GNU General Public License as published by
7;;; the Free Software Foundation; either version 3 of the License, or (at
8;;; your option) any later version.
9;;;
10;;; This program is distributed in the hope that it will be useful, but
11;;; WITHOUT ANY WARRANTY; without even the implied warranty of
12;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13;;; GNU General Public License for more details.
14;;;
15;;; You should have received a copy of the GNU General Public License
16;;; along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18(define-module (guix-science packages physics)
19 #:use-module ((guix licenses) #:prefix license:)
20 #:use-module (guix build-system cmake)
21 #:use-module (guix git-download)
22 #:use-module (guix packages))
23
24(define (replace-char old-char new-char str)
25 (string-map (lambda (char)
26 (if (char=? char old-char) new-char char)) str))
27
28(define-public clhep-2.4.6
29 (package
30 (name "clhep")
31 (version "2.4.6.2")
32 (source
33 (origin
34 (method git-fetch)
35 (uri (git-reference
36 (url "https://gitlab.cern.ch/CLHEP/CLHEP")
37 (commit (string-append "CLHEP_"
38 (replace-char #\. #\_ version)))))
39 (file-name (git-file-name name version))
40 (sha256
41 (base32 "06mpvpb5ywx8j5cpddh9sb415h02mim3ip1sd895q94pxci2jr92"))))
42 (build-system cmake-build-system)
43 (home-page "https://proj-clhep.web.cern.ch/proj-clhep/")
44 (synopsis "HEP-specific foundation and utility classes")
45 (description
46 "CLHEP is a set of HEP-specific foundation and utility classes such as
47random generators, physics vectors, geometry and linear algebra.
48CLHEP is structured in a set of packages independent of any external
49package.")
50 (license license:gpl3+)))
51
52(define-public clhep-2.4.7
53 (package
54 (inherit clhep-2.4.6)
55 (version "2.4.7.1")
56 (source
57 (origin
58 (inherit (package-source clhep-2.4.6))
59 (uri (git-reference
60 (url "https://gitlab.cern.ch/CLHEP/CLHEP")
61 (commit (string-append "CLHEP_"
62 (replace-char #\. #\_ version)))))
63 (sha256
64 (base32 "13la49jnadsi5f2a70qagv87j7qzcpdccmbp2lyscaxlkmzy253z"))))))
65
66(define-public clhep clhep-2.4.7)