guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05/93: gnu: Add rust-lapack-sys-0.14.


From: guix-commits
Subject: 05/93: gnu: Add rust-lapack-sys-0.14.
Date: Sun, 5 May 2024 16:44:46 -0400 (EDT)

rekado pushed a commit to branch wip-python-team
in repository guix.

commit 82f83cafb9087dc3ed3bfe1e94132c8bd2605f00
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Apr 29 10:09:32 2024 +0200

    gnu: Add rust-lapack-sys-0.14.
    
    * gnu/packages/crates-io.scm (rust-lapack-sys-0.14): New variable.
    
    Change-Id: Id8fa94a06c231f3864040d2c428ac81042803adf
---
 gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a67d3d74bb..650f3650e6 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -99,6 +99,7 @@
   #:use-module (gnu packages linux)
   #:use-module (gnu packages llvm)
   #:use-module (gnu packages mail)
+  #:use-module (gnu packages maths)
   #:use-module (gnu packages mp3)
   #:use-module (gnu packages multiprecision)
   #:use-module (gnu packages nettle)
@@ -32973,6 +32974,33 @@ generated by LALRPOP.")
        (sha256
         (base32 "0z4bjn3g9232n1im5p6mn9mwlvw5aj5iac6hbjmljqxkhf3d2xy2"))))))
 
+(define-public rust-lapack-sys-0.14
+  (package
+    (name "rust-lapack-sys")
+    (version "0.14.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "lapack-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1gmw6fn4zc6106pzpi88p79b260h7hav40b7sfisf45lbz45czs4"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin
+           (delete-file-recursively "lapack")
+           (substitute* "bin/wrapper.h"
+             (("\"../lapack/LAPACKE/include/lapack.h\"")
+              "<lapack.h>"))))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2))))
+    (inputs (list lapack))
+    (home-page "https://github.com/blas-lapack-rs/lapack-sys";)
+    (synopsis "Rust bindings to LAPACK (Fortran)")
+    (description "The package provides bindings to LAPACK (Fortran).")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-lazy-bytes-cast-5
   (package
     (name "rust-lazy-bytes-cast")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]