guix-glicid/glicid/packages/maths.scm
2024-10-29 17:32:53 +01:00

129 lines
No EOL
4.5 KiB
Scheme
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(define-module (glicid packages maths)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module ((gnu packages maths) #:prefix gnu:)
#:use-module (gnu packages commencement)
#:use-module (gnu packages mpi)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (gnu packages)
#:use-module (gnu packages compression)
#:use-module (guix build-system cmake)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (srfi srfi-1) ;; for (take
#:use-module (gnu packages maths)
#:use-module (glicid utils))
(define-public scalapack-upstream
(package
(inherit gnu:scalapack)
(name "scalapack-upstream")
(version "2.1.0-new-upstream")
(source (origin
(method git-fetch)
(uri (git-reference
(url
"https://oauth2:glpat-RsX2GjsD2WrzXubiJeou@gitlab.univ-nantes.fr/CCIPL/legacy_code_mirror/scalapack.git")
(commit "myv2.0.2")))
(file-name "scalapack-univ-myv2")
;; (patches (search-patches "scalapack-blacs-mpi-deprecations.patch"))
(sha256
(base32
"1ccic46psf2hl9wsyflvkn5rxg8k17q578m9mzimvm9brbggf0na"))))
(arguments
`(#:configure-flags `("-DBUILD_SHARED_LIBS:BOOL=YES")
#:phases (modify-phases %standard-phases
(add-before 'check 'mpi-setup
,%openmpi-setup))))))
(define local:scalapack
scalapack-upstream)
(define-public scalapack-latest
(latest-version local:scalapack gnu:scalapack))
(define-public openblas-upstream-0.3.15
(package
(inherit gnu:openblas)
(name "openblas-upstream")
(version "0.3.15")
(source (origin
(method url-fetch)
(uri (string-append
"https://github.com/xianyi/OpenBLAS/releases/download/v"
version "/OpenBLAS-" version ".tar.gz"))
(sha256
(base32
"1gjbkrsh6n28hdp2ciyjigc8vg764d2r0jbzl63v753mjzn9va9h"))))))
(define-public hdf5-glicid
(package
(inherit gnu:hdf5-parallel-openmpi)
(name "hdf5-glicid")
(inputs (modify-inputs (package-inputs gnu:hdf5-parallel-openmpi)
(prepend gfortran-toolchain)))))
(define-public hdf5-1.10.2
(package
(inherit hdf5-1.8)
(version "1.10.2")
(source
(origin
(method url-fetch)
(uri (list (string-append "https://support.hdfgroup.org/ftp/HDF5/releases/"
"hdf5-" (version-major+minor version)
"/hdf5-" version "/src/hdf5-"
version ".tar.bz2")
(string-append "https://support.hdfgroup.org/ftp/HDF5/"
"current"
(apply string-append
(take (string-split version #\.) 2))
"/src/hdf5-" version ".tar.bz2")))
(sha256
(base32 "0wfb3w6dzi6zr2g1sdswqy9lxbp7yr4blvyi7k2xya7izmxmpb8w"))
(patches (search-patches "hdf5-config-date.patch"))))))
(define local:openblas
openblas-upstream-0.3.15)
(define-public scalapack-latest
(latest-version local:openblas gnu:openblas))
(use-modules (guix packages))
(use-modules (guix download))
(use-modules (gnu packages linux))
(use-modules (gnu packages gcc))
(use-modules (gnu packages compression))
;(use-modules (gnu packages glicid))
(use-modules (guix git-download))
(use-modules (guix build-system cmake))
(use-modules ((guix licenses)
#:prefix license:))
(define-public libsolv-upstream
(package
(name "libsolv")
(version "0.7.23")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/openSUSE/libsolv.git")
(commit version)))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "12z63kcna9swh3vzxk3sac0l4by5z8q22wip9cyq5b7wp9m3hn4b"))))
(build-system cmake-build-system)
(inputs (list zlib))
(home-page "https://github.com/openSUSE/libsolv")
(synopsis "libsolv, a free package dependency solver using a satisfiability algorithm.")
(description "libsolv, a free package dependency solver using a satisfiability algorithm.")
(license license:bsd-3))
)
hdf5-1.10.2