From 57ba62d4b9fbc4469d73f0b9cdecb395a138b396 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 29 Jan 2024 11:31:26 +0200 Subject: gnu: Add rust-ouroboros-0.17. * gnu/packages/crates-io.scm (rust-ouroboros-0.17): New variable. (rust-ouroboros-0.15): Inherit from rust-ouroboros-0.17. Change-Id: I862a9fa7d280bde5fad7dbcd8264e4dfb66b7dc6 --- gnu/packages/crates-io.scm | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 602f0afe69..2cfaff10e3 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -42643,8 +42643,30 @@ (define-public rust-ouroboros-macro-0.14 (sha256 (base32 "11cav04x82liknlrv50lpl1i1ln2jw4isdqzdjnjsg0pcpvwik9r")))))) +(define-public rust-ouroboros-0.17 + (package + (name "rust-ouroboros") + (version "0.17.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "ouroboros" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0m69j8288k3b3iyblngdfgraahnk9d5maw5a5y4fmprr1lr0gfp2")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-aliasable" ,rust-aliasable-0.1) + ("rust-ouroboros-macro" ,rust-ouroboros-macro-0.17) + ("rust-static-assertions" ,rust-static-assertions-1)))) + (home-page "https://github.com/someguynamedjosh/ouroboros") + (synopsis "Self-referential struct generation") + (description "Easy, safe self-referential struct generation for Rust.") + (license (list license:expat license:asl2.0)))) + (define-public rust-ouroboros-0.15 (package + (inherit rust-ouroboros-0.17) (name "rust-ouroboros") (version "0.15.6") (source @@ -42654,16 +42676,10 @@ (define-public rust-ouroboros-0.15 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1nvjra9dana2g6kxv3397qrgpyw6lknzya6lzs1s1llbap8qndg1")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-aliasable" ,rust-aliasable-0.1) - ("rust-ouroboros-macro" ,rust-ouroboros-macro-0.15)))) - (home-page "https://github.com/joshua-maros/ouroboros") - (synopsis "Self-referential struct generation") - (description - "Easy, safe self-referential struct generation for Rust.") - (license (list license:expat license:asl2.0)))) + ("rust-ouroboros-macro" ,rust-ouroboros-macro-0.15)))))) (define-public rust-ouroboros-0.14 (package -- cgit v1.2.3