From 44844729645113d2b7b4c319a169e9369bbf238c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 5 Jan 2025 11:22:01 +0200 Subject: [PATCH] gnu: Add rust-serial-0.4. * gnu/packages/crates-io.scm (rust-serial-0.4): New variable. Change-Id: I01b22ba1dd671785ff4eddda86b1c5b38c1b48df --- gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 38b44fa0d4..d252bfc142 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -70662,6 +70662,32 @@ (define-public rust-serdeconv-0.4 TOML/JSON/MessagePack strings and serializable values.") (license license:expat))) +(define-public rust-serial-0.4 + (package + (name "rust-serial") + (version "0.4.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "serial" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "11iyvc1z123hn7zl6bk5xpf6xdlsb33qh6xa7g0pghqgayb7l8x1")) + (snippet + #~(begin (use-modules (guix build utils)) + (substitute* "Cargo.toml" + ((", path = \".*\"") "")))))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-serial-core" ,rust-serial-core-0.4) + ("rust-serial-unix" ,rust-serial-unix-0.4) + ("rust-serial-windows" ,rust-serial-windows-0.4)))) + (home-page "https://github.com/dcuddeback/serial-rs") + (synopsis "Rust library for accessing serial ports") + (description + "This package provides Rust library for accessing serial ports.") + (license license:expat))) + (define-public rust-serial-test-3 (package (name "rust-serial-test")