diff mbox series

[bug#74234,PATCHv2,rust-team,16/20] gnu: Add rust-zbar-rust-0.0.

Message ID 913193d84c5699c0203de24128d2e2ae840ab644.1731018437.git.goodoldpaul@autistici.org
State New
Headers show
Series [bug#74234,PATCHv2,rust-team,01/20] gnu: Add rust-ashpd-0.6. | expand

Commit Message

Giacomo Leidi Nov. 7, 2024, 10:27 p.m. UTC
* gnu/packages/crates-io.scm (rust-zbar-rust-0.0): New variable.

Change-Id: I4cca2fd8c9fcaf0d2d53a8ae858e42e67ffc27bc
---
 gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index ac123fe3fa..d79dffc775 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -72,6 +72,7 @@  (define-module (gnu packages crates-io)
   #:use-module (gnu packages)
   #:use-module (gnu packages acl)
   #:use-module (gnu packages admin)
+  #:use-module (gnu packages aidc)
   #:use-module (gnu packages audio)
   #:use-module (gnu packages autotools)
   #:use-module (gnu packages avahi)
@@ -94984,6 +94985,33 @@  (define-public rust-z-base-32-0.1
     (description "This package provides human-oriented base-32 encoding.")
     (license license:expat)))
 
+(define-public rust-zbar-rust-0.0
+  (package
+    (name "rust-zbar-rust")
+    (version "0.0.23")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "zbar-rust" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0m6c9393bvw2sngp36m0db1gzqxyqa9ms5biibz659md68di7k59"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-enum-ordinalize" ,rust-enum-ordinalize-4)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-pkg-config" ,rust-pkg-config-0.3))
+       #:cargo-development-inputs (("rust-image" ,rust-image-0.24)
+                                   ("rust-qrcode-generator" ,rust-qrcode-generator-4))))
+    (native-inputs (list pkg-config))
+    (inputs (list zbar))
+    (home-page "https://magiclen.org/zbar-rust")
+    (synopsis "High-level and low-level ZBar bindings")
+    (description
+     "This package provides High-level and low-level ZBar bindings
+for the Rust language.")
+    (license license:lgpl2.1)))
+
 (define-public rust-zbase32-0.1
   (package
     (name "rust-zbase32")