guix-commits
[Top][All Lists]
Advanced

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

04/31: gnu: Add rust-self-cell-1.


From: guix-commits
Subject: 04/31: gnu: Add rust-self-cell-1.
Date: Fri, 4 Aug 2023 11:36:54 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit db067988fa5db1b3de919b3b7397ca30435ca499
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Aug 3 11:52:36 2023 +0300

    gnu: Add rust-self-cell-1.
    
    * gnu/packages/crates-io.scm (rust-self-cell-1): New variable.
---
 gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2a107e2f63..5364fb069d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -58591,6 +58591,33 @@ macOS and iOS.")
        #:cargo-development-inputs
        (("rust-phf-codegen" ,rust-phf-codegen-0.8))))))
 
+(define-public rust-self-cell-1
+  (package
+    (name "rust-self-cell")
+    (version "1.0.1")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "self-cell" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1djgfccbfhj2zv7xmqc2nxwn41g1swyrxg1d488pirj3am8rwc2c"))
+              (modules '((guix build utils)))
+              (snippet
+               '(begin (substitute* "Cargo.toml"
+                         (("=([[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+)" _ 
version)
+                          (string-append "^" version)))))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-rustversion" ,rust-rustversion-1))
+       #:cargo-development-inputs (("rust-once-cell" ,rust-once-cell-1))))
+    (home-page "https://github.com/Voultapher/self_cell";)
+    (synopsis "Self-referential structs in stable Rust")
+    (description
+     "This package provides safe-to-use proc-macro-free self-referential 
structs
+in stable Rust.")
+    (license license:asl2.0)))
+
 (define-public rust-semver-1
   (package
     (name "rust-semver")



reply via email to

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