unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#66729] [PATCH] gnu: Add rust-cbindgen-0.26.
@ 2023-10-24 14:47 Tomas Volf
  2023-10-26 16:31 ` bug#66729: " John Kehayias via Guix-patches via
  2023-11-05 10:31 ` [bug#66729] " Efraim Flashner
  0 siblings, 2 replies; 3+ messages in thread
From: Tomas Volf @ 2023-10-24 14:47 UTC (permalink / raw)
  To: 66729; +Cc: Tomas Volf, Efraim Flashner

* gnu/packages/rust-apps.scm (rust-cbindgen-0.26): New variable.
(rust-cbindgen-0.24): Inherit from rust-cbindgen-0.26.

Change-Id: Id17f8e251ceecc8ae0708dcfc19acfc5c56b824f
---
The formating of the arguments and the native-inputs is a bit different than
before, but this is what guix style did produce.

 gnu/packages/rust-apps.scm | 58 ++++++++++++++++++++++----------------
 1 file changed, 34 insertions(+), 24 deletions(-)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 4a4247751b..a06447143a 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -1370,35 +1370,45 @@ (define-public rust-cbindgen
      "This package provides a tool for generating C/C++ bindings to Rust code.")
     (license license:mpl2.0)))
 
-(define-public rust-cbindgen-0.24
+(define-public rust-cbindgen-0.26
   (package
     (inherit rust-cbindgen)
     (name "rust-cbindgen")
+    (version "0.26.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "cbindgen" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0jdbxmn5h5nlr4bifx85gny309djv5djs9q78fa1d7sj0wdw2sys"))))
+    (arguments
+     `(#:cargo-inputs (("rust-clap" ,rust-clap-3)
+                       ("rust-heck" ,rust-heck-0.4)
+                       ("rust-indexmap" ,rust-indexmap-1)
+                       ("rust-log" ,rust-log-0.4)
+                       ("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-serde-json" ,rust-serde-json-1)
+                       ("rust-syn" ,rust-syn-1)
+                       ("rust-tempfile" ,rust-tempfile-3)
+                       ("rust-toml" ,rust-toml-0.5))
+       #:cargo-development-inputs (("rust-serial-test" ,rust-serial-test-0.5))))
+    (native-inputs (list python-cython))))
+
+(define-public rust-cbindgen-0.24
+  (package
+    (inherit rust-cbindgen-0.26)
+    (name "rust-cbindgen")
     (version "0.24.3")
     (source (origin
-             (method url-fetch)
-             (uri (crate-uri "cbindgen" version))
-             (file-name (string-append name "-" version ".tar.gz"))
-             (sha256
-              (base32
-               "1yqxqsz2d0cppd8zwihk2139g5gy38wqgl9snj6rnk8gyvnqsdd6"))))
-    (arguments
-     `(#:cargo-inputs
-       (("rust-clap" ,rust-clap-3)
-        ("rust-heck" ,rust-heck-0.4)
-        ("rust-indexmap" ,rust-indexmap-1)
-        ("rust-log" ,rust-log-0.4)
-        ("rust-proc-macro2" ,rust-proc-macro2-1)
-        ("rust-quote" ,rust-quote-1)
-        ("rust-serde" ,rust-serde-1)
-        ("rust-serde-json" ,rust-serde-json-1)
-        ("rust-syn" ,rust-syn-1)
-        ("rust-tempfile" ,rust-tempfile-3)
-        ("rust-toml" ,rust-toml-0.5))
-        #:cargo-development-inputs
-        (("rust-serial-test" ,rust-serial-test-0.5))))
-    (native-inputs
-     (list python-cython))))
+              (method url-fetch)
+              (uri (crate-uri "cbindgen" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1yqxqsz2d0cppd8zwihk2139g5gy38wqgl9snj6rnk8gyvnqsdd6"))))))
 
 (define-public rust-cbindgen-0.23
   (package

base-commit: bd34d5818842871e83aac12305263a821220d124
-- 
2.41.0





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

* bug#66729: [PATCH] gnu: Add rust-cbindgen-0.26.
  2023-10-24 14:47 [bug#66729] [PATCH] gnu: Add rust-cbindgen-0.26 Tomas Volf
@ 2023-10-26 16:31 ` John Kehayias via Guix-patches via
  2023-11-05 10:31 ` [bug#66729] " Efraim Flashner
  1 sibling, 0 replies; 3+ messages in thread
From: John Kehayias via Guix-patches via @ 2023-10-26 16:31 UTC (permalink / raw)
  To: Tomas Volf; +Cc: 66729-done, Efraim Flashner

Hi Tomas,

On Tue, Oct 24, 2023 at 04:47 PM, Tomas Volf wrote:

> * gnu/packages/rust-apps.scm (rust-cbindgen-0.26): New variable.
> (rust-cbindgen-0.24): Inherit from rust-cbindgen-0.26.
>
> Change-Id: Id17f8e251ceecc8ae0708dcfc19acfc5c56b824f
> ---
> The formating of the arguments and the native-inputs is a bit different than
> before, but this is what guix style did produce.
>

I think I've seen both ways; this is fine to me.

>  gnu/packages/rust-apps.scm | 58 ++++++++++++++++++++++----------------
>  1 file changed, 34 insertions(+), 24 deletions(-)
>
> diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
> index 4a4247751b..a06447143a 100644
> --- a/gnu/packages/rust-apps.scm
> +++ b/gnu/packages/rust-apps.scm
> @@ -1370,35 +1370,45 @@ (define-public rust-cbindgen
>       "This package provides a tool for generating C/C++ bindings to Rust code.")
>      (license license:mpl2.0)))
>
> -(define-public rust-cbindgen-0.24
> +(define-public rust-cbindgen-0.26
>    (package
>      (inherit rust-cbindgen)
>      (name "rust-cbindgen")
> +    (version "0.26.0")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (crate-uri "cbindgen" version))
> +       (file-name (string-append name "-" version ".tar.gz"))
> +       (sha256
> +        (base32 "0jdbxmn5h5nlr4bifx85gny309djv5djs9q78fa1d7sj0wdw2sys"))))
> +    (arguments
> +     `(#:cargo-inputs (("rust-clap" ,rust-clap-3)
> +                       ("rust-heck" ,rust-heck-0.4)
> +                       ("rust-indexmap" ,rust-indexmap-1)
> +                       ("rust-log" ,rust-log-0.4)
> +                       ("rust-proc-macro2" ,rust-proc-macro2-1)
> +                       ("rust-quote" ,rust-quote-1)
> +                       ("rust-serde" ,rust-serde-1)
> +                       ("rust-serde-json" ,rust-serde-json-1)
> +                       ("rust-syn" ,rust-syn-1)
> +                       ("rust-tempfile" ,rust-tempfile-3)
> +                       ("rust-toml" ,rust-toml-0.5))
> +       #:cargo-development-inputs (("rust-serial-test" ,rust-serial-test-0.5))))
> +    (native-inputs (list python-cython))))
> +
> +(define-public rust-cbindgen-0.24
> +  (package
> +    (inherit rust-cbindgen-0.26)
> +    (name "rust-cbindgen")
>      (version "0.24.3")
>      (source (origin
> -             (method url-fetch)
> -             (uri (crate-uri "cbindgen" version))
> -             (file-name (string-append name "-" version ".tar.gz"))
> -             (sha256
> -              (base32
> -               "1yqxqsz2d0cppd8zwihk2139g5gy38wqgl9snj6rnk8gyvnqsdd6"))))
> -    (arguments
> -     `(#:cargo-inputs
> -       (("rust-clap" ,rust-clap-3)
> -        ("rust-heck" ,rust-heck-0.4)
> -        ("rust-indexmap" ,rust-indexmap-1)
> -        ("rust-log" ,rust-log-0.4)
> -        ("rust-proc-macro2" ,rust-proc-macro2-1)
> -        ("rust-quote" ,rust-quote-1)
> -        ("rust-serde" ,rust-serde-1)
> -        ("rust-serde-json" ,rust-serde-json-1)
> -        ("rust-syn" ,rust-syn-1)
> -        ("rust-tempfile" ,rust-tempfile-3)
> -        ("rust-toml" ,rust-toml-0.5))
> -        #:cargo-development-inputs
> -        (("rust-serial-test" ,rust-serial-test-0.5))))
> -    (native-inputs
> -     (list python-cython))))
> +              (method url-fetch)
> +              (uri (crate-uri "cbindgen" version))
> +              (file-name (string-append name "-" version ".tar.gz"))
> +              (sha256
> +               (base32
> +                "1yqxqsz2d0cppd8zwihk2139g5gy38wqgl9snj6rnk8gyvnqsdd6"))))))
>
>  (define-public rust-cbindgen-0.23
>    (package
>
> base-commit: bd34d5818842871e83aac12305263a821220d124

Thanks, applied as a69dec71493c1ecf06071d3304038f3648de69c4 after
discussing with Efraim on #guix (there's 19003bf84aff99e6aa2eef60559d14772ea2aab2
on rust-team but I opted for this one since it was all the same to
Efraim).

John





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

* [bug#66729] [PATCH] gnu: Add rust-cbindgen-0.26.
  2023-10-24 14:47 [bug#66729] [PATCH] gnu: Add rust-cbindgen-0.26 Tomas Volf
  2023-10-26 16:31 ` bug#66729: " John Kehayias via Guix-patches via
@ 2023-11-05 10:31 ` Efraim Flashner
  1 sibling, 0 replies; 3+ messages in thread
From: Efraim Flashner @ 2023-11-05 10:31 UTC (permalink / raw)
  To: Tomas Volf; +Cc: 66729-done

[-- Attachment #1: Type: text/plain, Size: 258 bytes --]

Looks like this patch was applied. Closing!

-- 
Efraim Flashner   <efraim@flashner.co.il>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2023-11-05 10:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-24 14:47 [bug#66729] [PATCH] gnu: Add rust-cbindgen-0.26 Tomas Volf
2023-10-26 16:31 ` bug#66729: " John Kehayias via Guix-patches via
2023-11-05 10:31 ` [bug#66729] " Efraim Flashner

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).