summary refs log tree commit diff
diff options
context:
space:
mode:
authorValentin Ignatev <valentignatev@gmail.com>2020-01-26 01:45:36 +0300
committerEfraim Flashner <efraim@flashner.co.il>2020-02-25 16:48:57 +0200
commitef6242415b4918a4efc70f35c960ea37c5d6b114 (patch)
tree20b49a04ef955de8f4ab22040cbbe72d52b8d40d
parenta836f50b46937949d68943bc922594dd2455c5c8 (diff)
downloadguix-ef6242415b4918a4efc70f35c960ea37c5d6b114.tar.gz
gnu: Add rust-cgmath-0.16.
* gnu/packages/crates-io.scm (rust-cgmath-0.16): New variable.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
-rw-r--r--gnu/packages/crates-io.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 16937d7faf..035a747dc9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1880,6 +1880,33 @@ depending on a large number of #[cfg] parameters.  Structured like an
 for computer graphics.")
     (license license:asl2.0)))
 
+(define-public rust-cgmath-0.16
+  (package
+    (inherit rust-cgmath-0.17)
+    (name "rust-cgmath")
+    (version "0.16.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "cgmath" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "07754c03v3srzf64ghsl3fggrdi4kjy6l3vyq2d2wfjfixybb934"))))
+    (arguments
+     `(#:skip-build? #t     ; Crate won't build without glium.
+       #:cargo-inputs
+       (("rust-approx" ,rust-approx-0.1)
+        ("rust-mint" ,rust-mint-0.5)
+        ("rust-num-traits" ,rust-num-traits-0.1)
+        ("rust-rand" ,rust-rand-0.4)
+        ("rust-serde" ,rust-serde-1.0)
+        ("rust-simd" ,rust-simd-0.2))
+       #:cargo-development-inputs
+       (;("rust-glium" ,rust-glium-0.19)
+        ("rust-serde-json" ,rust-serde-json-1.0))))))
+
 (define-public rust-ci-info-0.3
   (package
     (name "rust-ci-info")