gnu: julia-bandedmatrices: Fix compatibility with openblas64.

* gnu/packages/julia-xyz.scm (julia-bandedmatrices)[source]: Add snippet
to backport patch to correctly refer to libblas and liblapack.
This commit is contained in:
Efraim Flashner 2023-09-28 12:16:40 +03:00
parent 6ba5e21e3a
commit 790f68653e
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -379,7 +379,17 @@ (define-public julia-bandedmatrices
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0nrcasjdpwf15z7l2lzyhxjqxlnqk5if78s15sh4gdgxf9kzj3a6"))))
(base32 "0nrcasjdpwf15z7l2lzyhxjqxlnqk5if78s15sh4gdgxf9kzj3a6"))
(snippet
#~(begin
(use-modules (guix build utils))
;; From upstream commit 8bbf901bb7fb417fe90be26e0cd9a141cfdfe19c,
;; included in 0.17.34.
(substitute* "src/BandedMatrices.jl"
(("const libblas = Base\\.libblas_name")
"const libblas = LinearAlgebra.BLAS.libblas")
(("const liblapack = Base\\.liblapack_name")
"const liblapack = LinearAlgebra.BLAS.liblapack"))))))
(build-system julia-build-system)
(propagated-inputs
(list julia-aqua