guix-commits
[Top][All Lists]
Advanced

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

43/194: gnu: Add rust-nalgebra-macros-0.2.


From: guix-commits
Subject: 43/194: gnu: Add rust-nalgebra-macros-0.2.
Date: Tue, 3 Oct 2023 14:57:20 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit 56365e37d663306ad730ebf0020c6cda378de317
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Oct 1 16:32:09 2023 +0300

    gnu: Add rust-nalgebra-macros-0.2.
    
    * gnu/packages/crates-io.scm (rust-nalgebra-macros-0.2): New variable.
    (rust-nalgebra-macros-0.1): Inherit from rust-nalgebra-macros-0.2.
---
 gnu/packages/crates-io.scm | 35 ++++++++++++++++++++++++++++-------
 1 file changed, 28 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d4a59a2159..5df22cc5a5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -40394,8 +40394,35 @@ statically-sized or dynamically-sized matrices.")
        (("rust-rand-xorshift" ,rust-rand-xorshift-0.2)
         ("rust-serde-json" ,rust-serde-json-1))))))
 
+(define-public rust-nalgebra-macros-0.2
+  (package
+    (name "rust-nalgebra-macros")
+    (version "0.2.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "nalgebra-macros" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "166rzbzi1hcyjfvwxmrdimrcmflvxxifjfkqxxkdjfnhcznilxli"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-proc-macro2" ,rust-proc-macro2-1)
+        ("rust-quote" ,rust-quote-1)
+        ("rust-syn" ,rust-syn-1))
+       #:cargo-development-inputs
+       (("rust-nalgebra" ,rust-nalgebra-0.32)
+        ("rust-trybuild" ,rust-trybuild-1))))
+    (home-page "https://nalgebra.org";)
+    (synopsis "Procedural macros for nalgebra")
+    (description "This package provides procedural macros for the nalgebra
+linear algebra library.")
+    (license license:asl2.0)))
+
 (define-public rust-nalgebra-macros-0.1
   (package
+    (inherit rust-nalgebra-macros-0.2)
     (name "rust-nalgebra-macros")
     (version "0.1.0")
     (source
@@ -40411,7 +40438,6 @@ statically-sized or dynamically-sized matrices.")
            (substitute* "Cargo.toml"
              ;; The resolver feature is not supported by our versions of Cargo.
              (("resolver = \"2\".*") ""))))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
@@ -40419,12 +40445,7 @@ statically-sized or dynamically-sized matrices.")
         ("rust-quote" ,rust-quote-1)
         ("rust-syn" ,rust-syn-1))
        #:cargo-development-inputs
-       (("rust-nalgebra" ,rust-nalgebra-0.26))))
-    (home-page "https://nalgebra.org";)
-    (synopsis "Procedural macros for nalgebra")
-    (description "This package provides procedural macros for the nalgebra
-linear algebra library.")
-    (license license:asl2.0)))
+       (("rust-nalgebra" ,rust-nalgebra-0.26))))))
 
 (define-public rust-napi-0.5
   (package



reply via email to

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