all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#69624] [PATCH rust-team] gnu: rust-devise: Added v0.3 and building v0.2
@ 2024-03-08  3:21 Aaron Covrig via Guix-patches via
  2024-04-06  0:44 ` [bug#69624] [PATCH v2 1/8] gnu: Add rust-proc-macro2-diagnostics-0.9 Aaron Covrig via Guix-patches via
  0 siblings, 1 reply; 10+ messages in thread
From: Aaron Covrig via Guix-patches via @ 2024-03-08  3:21 UTC (permalink / raw)
  To: 69624; +Cc: Aaron Covrig, efraim

* gnu/packages/crates-io.scm (rust-devise): Added v0.3
* gnu/packages/crates-io.scm (rust-devise-codegen): Added v0.3
* gnu/packages/crates-io.scm (rust-devise-core): Added v0.3
* gnu/packages/crates-io.scm (rust-devise): Enabled building v0.2
* gnu/packages/crates-io.scm (rust-devise-codegen): Enabled building v0.2
* gnu/packages/crates-io.scm (rust-devise-core): Enabled building v0.2
* gnu/packages/crates-io.scm (rust-proc-macro2-diagnostics-0.10): Enabled testing
* gnu/packages/crates-io.scm (rust-proc-macro2-diagnostics-0.9): Added for rust-devise
---
 gnu/packages/crates-io.scm | 129 ++++++++++++++++++++++++++++++-------
 1 file changed, 106 insertions(+), 23 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1a08748392..e20adec251 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -18934,10 +18934,26 @@ (define-public rust-devise-0.4
 procedural macros.")
     (license (list license:expat license:asl2.0))))
 
-(define-public rust-devise-0.2
+(define-public rust-devise-0.3
   (package
     (inherit rust-devise-0.4)
     (name "rust-devise")
+    (version "0.3.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "devise" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "15dmibnykic2a1ndi66shyvxmpfysnhf05lg2iv8871g0w5miish"))))
+    (arguments
+     `(#:cargo-inputs (("rust-devise-codegen" ,rust-devise-codegen-0.3)
+                       ("rust-devise-core" ,rust-devise-core-0.3))))))
+
+(define-public rust-devise-0.2
+  (package
+    (inherit rust-devise-0.3)
+    (name "rust-devise")
     (version "0.2.1")
     (source
      (origin
@@ -18947,10 +18963,13 @@ (define-public rust-devise-0.2
        (sha256
         (base32 "09p52f54givb0g9l7clj11z755vldk8758y2lwm5mp3sa156qwfx"))))
     (arguments
-     `(#:skip-build? #t
-       #:cargo-inputs
-       (("rust-devise-codegen" ,rust-devise-codegen-0.2)
-        ("rust-devise-core" ,rust-devise-core-0.2))))))
+     `(#:cargo-inputs (("rust-devise-codegen" ,rust-devise-codegen-0.2)
+                       ("rust-devise-core" ,rust-devise-core-0.2))
+       #:phases (modify-phases %standard-phases
+                  ;; Enable using nightly/dev features
+                  (add-after 'unpack 'enable-unstable-features
+                    (lambda _
+                      (setenv "RUSTC_BOOTSTRAP" "1"))))))))
 
 (define-public rust-devise-codegen-0.4
   (package
@@ -18974,10 +18993,25 @@ (define-public rust-devise-codegen-0.4
 procedural macros.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-devise-codegen-0.3
+  (package
+    (inherit rust-devise-codegen-0.4)
+    (name "rust-devise-codegen")
+    (version "0.3.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "devise_codegen" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1cp7nnfwvjp6wfq11n0ffjjrwfa1wbsb58g1bz3ha6z5lvkp6g0j"))))
+    (arguments
+     `(#:cargo-inputs (("rust-devise-core" ,rust-devise-core-0.3)
+                       ("rust-quote" ,rust-quote-1))))))
 
 (define-public rust-devise-codegen-0.2
   (package
-    (inherit rust-devise-codegen-0.4)
+    (inherit rust-devise-codegen-0.3)
     (name "rust-devise-codegen")
     (version "0.2.1")
     (source
@@ -18988,10 +19022,13 @@ (define-public rust-devise-codegen-0.2
        (sha256
         (base32 "0lxbixni2v6snx2mkgi0kyq5dv8v6c5s57b6wc47q4hqs6884yza"))))
     (arguments
-     `(#:skip-build? #t
-       #:cargo-inputs
-       (("rust-devise-core" ,rust-devise-core-0.2)
-        ("rust-quote" ,rust-quote-0.6))))))
+     `(#:cargo-inputs (("rust-devise-core" ,rust-devise-core-0.2)
+                       ("rust-quote" ,rust-quote-0.6))
+       #:phases (modify-phases %standard-phases
+                  ;; Enable using nightly/dev features
+                  (add-after 'unpack 'enable-unstable-features
+                    (lambda _
+                      (setenv "RUSTC_BOOTSTRAP" "1"))))))))
 
 (define-public rust-devise-core-0.4
   (package
@@ -19019,10 +19056,29 @@ (define-public rust-devise-core-0.4
 procedural macros.")
     (license (list license:expat license:asl2.0))))
 
-(define-public rust-devise-core-0.2
+(define-public rust-devise-core-0.3
   (package
     (inherit rust-devise-core-0.4)
     (name "rust-devise-core")
+    (version "0.3.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "devise_core" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1l00qiih4z14ai0c3s16nlvw0kv4p07ygi6a0ms0knc78xpz87l4"))))
+    (arguments
+     `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-1)
+                       ("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-proc-macro2-diagnostics" ,rust-proc-macro2-diagnostics-0.9)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-1))))))
+
+(define-public rust-devise-core-0.2
+  (package
+    (inherit rust-devise-core-0.3)
+    (name "rust-devise-core")
     (version "0.2.1")
     (source
      (origin
@@ -19032,12 +19088,15 @@ (define-public rust-devise-core-0.2
        (sha256
         (base32 "0wr3jdzzibpafz73hcca83wnzdgjinvm7axmxnyfkbasbnfkw1fi"))))
     (arguments
-     `(#:skip-build? #t
-       #:cargo-inputs
-       (("rust-bitflags" ,rust-bitflags-1)
-        ("rust-proc-macro2" ,rust-proc-macro2-0.4)
-        ("rust-quote" ,rust-quote-0.6)
-        ("rust-syn" ,rust-syn-0.15))))))
+     `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-1)
+                       ("rust-proc-macro2" ,rust-proc-macro2-0.4)
+                       ("rust-quote" ,rust-quote-0.6)
+                       ("rust-syn" ,rust-syn-0.15))
+       #:phases (modify-phases %standard-phases
+                  ;; Enable using nightly/dev features
+                  (add-after 'unpack 'enable-unstable-features
+                    (lambda _
+                      (setenv "RUSTC_BOOTSTRAP" "1"))))))))
 
 (define-public rust-dhcproto-0.9
   (package
@@ -49710,17 +49769,41 @@ (define-public rust-proc-macro2-diagnostics-0.10
         (base32 "1j48ipc80pykvhx6yhndfa774s58ax1h6sm6mlhf09ls76f6l1mg"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:tests? #f  ; cannot determine resolution for the macro `diagnostic_item`
+     `(#:cargo-test-flags '("--" "--skip=main")
        #:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
                        ("rust-quote" ,rust-quote-1)
                        ("rust-syn" ,rust-syn-2)
-                       ("rust-version-check" ,rust-version-check-0.9)
-                       ("rust-yansi" ,rust-yansi-1))
-       #:cargo-development-inputs (("rust-trybuild" ,rust-trybuild-1))))
+                       ("rust-yansi" ,rust-yansi-1)
+                       ("rust-version-check" ,rust-version-check-0.9))
+       #:cargo-development-inputs (("rust-trybuild" ,rust-trybuild-1)
+                                   ("rust-version-check" ,rust-version-check-0.9))))
     (home-page "https://github.com/SergioBenitez/proc-macro2-diagnostics")
     (synopsis "Diagnostics for proc-macro2")
-    (description "Diagnostics for proc-macro2.")
-    (license (list license:expat license:asl2.0))))
+    (description "Diagnostics for stable and nightly proc-macros!")
+    (license (list license:asl2.0 license:expat))))
+
+(define-public rust-proc-macro2-diagnostics-0.9
+  (package
+    (inherit rust-proc-macro2-diagnostics-0.10)
+    (name "rust-proc-macro2-diagnostics")
+    (version "0.9.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "proc-macro2-diagnostics" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1nmazlb1dkznjds7qwms7yxhi33ajc3isji2lsgx8r3lsqk9gwjb"))))
+    (arguments
+     `(#:cargo-test-flags '("--" "--skip=main")
+       #:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-1)
+                       ("rust-yansi" ,rust-yansi-0.5)
+                       ;; Add missing dependency
+                       ("rust-version-check" ,rust-version-check-0.9))
+       #:cargo-development-inputs (("rust-trybuild" ,rust-trybuild-1)
+                                   ("rust-version-check" ,rust-version-check-0.9))))))
 
 (define-public rust-proc-mounts-0.3
   (package

base-commit: d29e5a83e887cd2f4f459a12cbbfc40c77e55ce2
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-04-07 12:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-08  3:21 [bug#69624] [PATCH rust-team] gnu: rust-devise: Added v0.3 and building v0.2 Aaron Covrig via Guix-patches via
2024-04-06  0:44 ` [bug#69624] [PATCH v2 1/8] gnu: Add rust-proc-macro2-diagnostics-0.9 Aaron Covrig via Guix-patches via
2024-04-06  0:44   ` [bug#69624] [PATCH v2 2/8] gnu: Enables building rust-proc-macro2-diagnostics-0.10 Aaron Covrig via Guix-patches via
2024-04-06  0:44   ` [bug#69624] [PATCH v2 3/8] gnu: Enables building rust-devise-core-0.2 Aaron Covrig via Guix-patches via
2024-04-06  0:44   ` [bug#69624] [PATCH v2 4/8] gnu: Enables building rust-devise-codegen-0.2 Aaron Covrig via Guix-patches via
2024-04-06  0:44   ` [bug#69624] [PATCH v2 5/8] gnu: Enable building rust-devise-0.2 Aaron Covrig via Guix-patches via
2024-04-06  0:44   ` [bug#69624] [PATCH v2 6/8] gnu: Add rust-devise-core-0.3 Aaron Covrig via Guix-patches via
2024-04-06  0:44   ` [bug#69624] [PATCH v2 7/8] gnu: Add rust-devise-codegen-0.3 Aaron Covrig via Guix-patches via
2024-04-06  0:44   ` [bug#69624] [PATCH v2 8/8] gnu: Add rust-devise-0.3 Aaron Covrig via Guix-patches via
2024-04-07 12:27   ` bug#69624: [PATCH v2 1/8] gnu: Add rust-proc-macro2-diagnostics-0.9 Efraim Flashner

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.