summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorJohn Soo <jsoo1@asu.edu>2020-01-14 08:34:59 -0800
committerEfraim Flashner <efraim@flashner.co.il>2020-01-20 11:16:34 +0200
commitbc3c2aacd39165b1949ee440e773427f5e1fd075 (patch)
tree27a51766f9e8b70cfc3041056d7b55040c0579d0 /gnu/packages
parent4edb32699e6923fba5371781ca3c6391b0032d86 (diff)
downloadguix-bc3c2aacd39165b1949ee440e773427f5e1fd075.tar.gz
gnu: Add rust-memoffset-0.5.
* gnu/packages/crates-io.scm (rust-memoffset-0.5): New variable.
(rust-memoffset-0.2): Inherit from rust-memoffset-0.5.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm35
1 files changed, 28 insertions, 7 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4339f1f574..66d3b52d99 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -5508,10 +5508,10 @@ file IO.")
          (base32
           "1zy6s0ni0lx9rjzq3gq2zz9r8zgjmbp02332g3gsj4fyhv4s5zz2"))))))
 
-(define-public rust-memoffset-0.2
+(define-public rust-memoffset-0.5
   (package
     (name "rust-memoffset")
-    (version "0.2.1")
+    (version "0.5.3")
     (source
      (origin
        (method url-fetch)
@@ -5520,16 +5520,37 @@ file IO.")
         (string-append name "-" version ".tar.gz"))
        (sha256
         (base32
-         "1cvm2z7dy138s302ii7wlzcxbka5a8yfl5pl5di7lbdnw9hw578g"))))
+         "1fblqzc25hfaym8m0pj112s66pqq87avvaqm5hp5rskib2w9w63m"))))
     (build-system cargo-build-system)
-    (arguments `(#:skip-build? #t))
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-rustc-version" ,rust-rustc-version-0.2))
+       #:cargo-development-inputs
+       (("rust-doc-comment" ,rust-doc-comment-0.3))))
     (home-page "https://github.com/Gilnaa/memoffset")
     (synopsis
-     "offset_of functionality for Rust structs")
-    (description
-     "@code{offset_of} functionality for Rust structs.")
+     "C-like offset_of functionality for Rust structs")
+    (description "This package provides C-like @code{offset_of} functionality
+for Rust structs.")
     (license license:expat)))
 
+(define-public rust-memoffset-0.2
+  (package
+    (inherit rust-memoffset-0.5)
+    (name "rust-memoffset")
+    (version "0.2.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "memoffset" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1cvm2z7dy138s302ii7wlzcxbka5a8yfl5pl5di7lbdnw9hw578g"))))
+    (arguments `(#:skip-build? #t))))
+
 (define-public rust-mime-0.3
   (package
     (name "rust-mime")