guix-commits
[Top][All Lists]
Advanced

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

15/22: gnu: rust-dlib: Add 0.5.0.


From: guix-commits
Subject: 15/22: gnu: rust-dlib: Add 0.5.0.
Date: Wed, 27 Jul 2022 06:32:29 -0400 (EDT)

mbakke pushed a commit to branch master
in repository guix.

commit 28364584af22b9367615b08c77e81474d255d641
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Jul 26 00:47:48 2022 +0200

    gnu: rust-dlib: Add 0.5.0.
    
    * gnu/packages/crates-io.scm (rust-dlib-0.5): New variable.
    (rust-dlib-0.4): Inherit from it.
---
 gnu/packages/crates-io.scm | 34 ++++++++++++++++++++++++++--------
 1 file changed, 26 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 544d85a544..0802330a78 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -18420,8 +18420,33 @@ Central Dispatch.")
 Google's diff-match-patch.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-dlib-0.5
+  (package
+    (name "rust-dlib")
+    (version "0.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "dlib" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1547hy7nrhkrb2i09va244c0h8mr845ccbs2d2mc414c68bpa6xc"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f                      ;FIXME: Several macros are not found.
+       #:cargo-inputs
+       (("rust-libloading" ,rust-libloading-0.7))))
+    (home-page "https://github.com/vberger/dlib";)
+    (synopsis "Helper macros for manually loading optional system libraries")
+    (description
+     "This package provides helper macros for handling manually loading 
optional
+system libraries.")
+    (license license:expat)))
+
 (define-public rust-dlib-0.4
   (package
+    (inherit rust-dlib-0.5)
     (name "rust-dlib")
     (version "0.4.2")
     (source
@@ -18433,18 +18458,11 @@ Google's diff-match-patch.")
        (sha256
         (base32
          "0xlsf3lrz9hd7q3ff6lp5mw4kn3nbryn746kd07i93r6wg8ia7xi"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-libloading" ,rust-libloading-0.6))))
     (inputs
-     (list rust-libloading-0.6))
-    (home-page "https://github.com/vberger/dlib";)
-    (synopsis "Helper macros for manually loading optional system libraries")
-    (description
-     "This package provides helper macros for handling manually loading 
optional
-system libraries.")
-    (license license:expat)))
+     (list rust-libloading-0.6))))
 
 (define-public rust-dlv-list-0.2
   (package



reply via email to

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