diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2019-09-05 17:52:14 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2019-09-06 15:45:59 +0300 |
commit | 5b15d635eddda7708d68a224f4df50e1c866f92d (patch) | |
tree | 16141d343dcf1e71853effd92799bfdaf4cb7a9e | |
parent | e81e48ef29df257c8b3347a36165bbe284c13568 (diff) | |
download | patches-5b15d635eddda7708d68a224f4df50e1c866f92d.tar patches-5b15d635eddda7708d68a224f4df50e1c866f92d.tar.gz |
gnu: Add rust-netlib-src.
* gnu/packages/crates-io.scm (rust-netlib-src): New variable.
-rw-r--r-- | gnu/packages/crates-io.scm | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index ea6fd1dbc7..d6a26fc119 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -24,6 +24,8 @@ #:use-module (guix download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) + #:use-module (gnu packages gcc) + #:use-module (gnu packages maths) #:use-module (gnu packages pkg-config)) ;;; @@ -1373,6 +1375,42 @@ types as proposed in RFC 1158.") (license (list license:asl2.0 license:expat)))) +(define-public rust-netlib-src + (package + (name "rust-netlib-src") + (version "0.7.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "netlib-src" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "112hwfw1zzdj10h3j213xxqjrq38iygb3nb3ijay65ycmrg819s4")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-development-inputs + (("rust-cmake" ,rust-cmake) + ("rust-libc" ,rust-libc)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'use-system-lapack + (lambda _ + (delete-file-recursively "source") + (substitute* "Cargo.toml" + (("default .*") + "default = [\"system\"]\n")) + #t))))) + (inputs + `(("gfortran:lib" ,gfortran "lib") + ("lapack" ,lapack))) + (home-page "https://github.com/blas-lapack-rs/netlib-src") + (synopsis "Source of BLAS and LAPACK via Netlib") + (description + "The package provides a source of BLAS and LAPACK via Netlib.") + (license (list license:asl2.0 + license:expat)))) + (define-public rust-nodrop (package (name "rust-nodrop") |