unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#75391] [PATCH rust-team 00/12] gnu: Add wallust.
@ 2025-01-05 22:49 Andrew Wong via Guix-patches via
  2025-01-05 23:01 ` [bug#75391] [PATCH 01/12] " Andrew Wong via Guix-patches via
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: Andrew Wong via Guix-patches via @ 2025-01-05 22:49 UTC (permalink / raw)
  To: 75391; +Cc: Andrew Wong, Efraim Flashner

This patch series adds the "Wallust" theme generator. This is my first patch series of this size, so please LMK if I missed anything!

Andrew Wong (12):
  gnu: Add wallust.
  gnu: Add rust-vergen-9.
  gnu: Add rust-vergen-lib-0.1.
  gnu: Add rust-vergen-git2-1.
  gnu: Add rust-fast-image-resize-5.
  gnu: Add rust-kmeans-colors-0.6.
  gnu: Add rust-documented-0.6.
  gnu: Add rust-documented-macros-0.6.
  gnu: Add rust-new-string-template-1.
  gnu: Add rust-optfield-0.3.
  gnu: rust-owo-colors-4: Update to 4.1.0.
  gnu: Add rust-spinners-4.

 gnu/packages/crates-graphics.scm |  57 ++++++++++
 gnu/packages/crates-io.scm       | 181 ++++++++++++++++++++++++++++++-
 gnu/packages/crates-shell.scm    |  22 ++++
 gnu/packages/rust-apps.scm       | 108 ++++++++++++++++++
 4 files changed, 366 insertions(+), 2 deletions(-)


base-commit: 4ee631832635a34bb38b4d0dc650e9b34fc14dd5
-- 
2.47.1





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

* [bug#75391] [PATCH 01/12] gnu: Add wallust.
  2025-01-05 22:49 [bug#75391] [PATCH rust-team 00/12] gnu: Add wallust Andrew Wong via Guix-patches via
@ 2025-01-05 23:01 ` Andrew Wong via Guix-patches via
  2025-01-05 23:01 ` [bug#75391] [PATCH 02/12] gnu: Add rust-vergen-9 Andrew Wong via Guix-patches via
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Andrew Wong via Guix-patches via @ 2025-01-05 23:01 UTC (permalink / raw)
  To: 75391; +Cc: Andrew Wong, Efraim Flashner

* gnu/packages/rust-apps.scm (wallust): New variable;
(wallust-themes): New variable.

Change-Id: If02281e12a2f1f54fccc09bd90181e3e23fb0de2
---
 gnu/packages/rust-apps.scm | 108 +++++++++++++++++++++++++++++++++++++
 1 file changed, 108 insertions(+)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index dbf253b366..776a43f8e0 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -4422,6 +4422,114 @@ (define-public rust-xremap
     (description "This package provides dynamic key remapp for X and Wayland.")
     (license license:expat)))
 
+(define-public wallust-themes
+  (package
+    (name "wallust-themes")
+    (version "1.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "wallust_themes" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1kgkggdb78sxz81si3glhvqpxbxhz858p9wzqxd51drzlvwgi1m1"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-serde" ,rust-serde-1)
+                       ("rust-serde-json" ,rust-serde-json-1))))
+    (home-page "https://codeberg.org/explosion-mental/wallust-themes")
+    (synopsis "Built in colorschemes for Wallust")
+    (description "This package provides built-in colorschemes for Wallust.")
+    (license license:expat)))
+
+(define-public wallust
+  (package
+    (name "wallust")
+    (version "3.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "wallust" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1frx8py92vn04hc8cq18bs0z5dadx2q271fa3wgsry9bh5qvs6jp"))))
+    (build-system cargo-build-system)
+    (native-inputs (list pkg-config))
+    (inputs (list zlib libgit2-1.8))
+    (arguments
+     `(#:features (list "buildgen" "doc" "themes")
+       #:install-source? #f
+       #:phases (modify-phases %standard-phases
+                  (add-after 'install 'install-extras
+                    (lambda* (#:key outputs #:allow-other-keys)
+                      (let* ((out (assoc-ref outputs "out"))
+                             (install-completion (lambda (path filename)
+                                                   (install-file (string-append
+                                                                  "completions/"
+                                                                  filename)
+                                                                 (string-append
+                                                                  out path))))
+                             (install-man (lambda (filename section)
+                                            (install-file (string-append
+                                                           "man/" filename)
+                                                          (string-append out
+                                                           "/share/man/man"
+                                                           section)))))
+                        (install-completion "/etc/bash-completion.d/"
+                                            "wallust.bash")
+                        (install-completion
+                         "/share/fish/vendor_completions.d/" "wallust.fish")
+                        (install-completion "/share/zsh/site-functions/"
+                                            "_wallust")
+                        (install-completion "/share/elvish/lib/" "wallust.elv")
+                        (install-man "wallust-cs.1" "1")
+                        (install-man "wallust-run.1" "1")
+                        (install-man "wallust-theme.1" "1")
+                        (install-man "wallust.1" "1")
+                        (install-man "wallust.5" "5")))))
+       #:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
+                       ("rust-clap" ,rust-clap-4)
+                       ("rust-dirs" ,rust-dirs-5)
+                       ("rust-documented" ,rust-documented-0.6)
+                       ("rust-dunce" ,rust-dunce-1)
+                       ("rust-fast-image-resize" ,rust-fast-image-resize-5)
+                       ("rust-fastrand" ,rust-fastrand-2)
+                       ("rust-glob" ,rust-glob-0.3)
+                       ("rust-image" ,rust-image-0.25)
+                       ("rust-itertools" ,rust-itertools-0.13)
+                       ("rust-kmeans-colors" ,rust-kmeans-colors-0.6)
+                       ("rust-minijinja" ,rust-minijinja-2)
+                       ("rust-new-string-template" ,rust-new-string-template-1)
+                       ("rust-num-traits" ,rust-num-traits-0.2)
+                       ("rust-owo-colors" ,rust-owo-colors-4)
+                       ("rust-palette" ,rust-palette-0.7)
+                       ("rust-regex" ,rust-regex-1)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-serde-json" ,rust-serde-json-1)
+                       ("rust-shellexpand" ,rust-shellexpand-3)
+                       ("rust-spinners" ,rust-spinners-4)
+                       ("rust-strum" ,rust-strum-0.26)
+                       ("rust-thiserror" ,rust-thiserror-1)
+                       ("rust-toml" ,rust-toml-0.8)
+                       ("rust-toml-edit" ,rust-toml-edit-0.22)
+                       ("rust-vergen-git2" ,rust-vergen-git2-1)
+                       ("wallust-themes" ,wallust-themes))
+       #:cargo-development-inputs (("rust-clap-complete" ,rust-clap-complete-4)
+                                   ("rust-clap-mangen" ,rust-clap-mangen-0.2)
+                                   ("rust-criterion" ,rust-criterion-0.5)
+                                   ("rust-dirs" ,rust-dirs-5)
+                                   ("rust-tempfile" ,rust-tempfile-3))))
+    (home-page "https://explosion-mental.codeberg.page/wallust")
+    (synopsis "Generate themes from images with advanced templating")
+    (description
+     "Wallust is a rust-based successor to \"pywal\" which generates color
+themes from images with advanced templating and generation options.
+Templates are made using either a subset of Jinja2 or pywal syntax.
+Color generation may be constrained to obey ANSI color standards, meet
+minimum contrast levels, and more.")
+    (license license:expat)))
+
 (define-public xremap-gnome
   (package
     (inherit rust-xremap)
-- 
2.47.1





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

* [bug#75391] [PATCH 02/12] gnu: Add rust-vergen-9.
  2025-01-05 22:49 [bug#75391] [PATCH rust-team 00/12] gnu: Add wallust Andrew Wong via Guix-patches via
  2025-01-05 23:01 ` [bug#75391] [PATCH 01/12] " Andrew Wong via Guix-patches via
@ 2025-01-05 23:01 ` Andrew Wong via Guix-patches via
  2025-01-05 23:01 ` [bug#75391] [PATCH 03/12] gnu: Add rust-vergen-lib-0.1 Andrew Wong via Guix-patches via
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Andrew Wong via Guix-patches via @ 2025-01-05 23:01 UTC (permalink / raw)
  To: 75391; +Cc: Andrew Wong, Efraim Flashner

* gnu/packages/crates-io.scm (rust-vergen-9): New variable.

Change-Id: I9ba0a29272f3abbb9013f52a2cf453cbdfde969e
---
 gnu/packages/crates-io.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4866f074f9..6a11844b18 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -89568,6 +89568,37 @@ (define-public rust-vek-0.15
 engines, with SIMD support and focus on convenience.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-vergen-9
+  (package
+    (name "rust-vergen")
+    (version "9.0.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "vergen" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0f86dz7mm0blfw17lggkkwm548mdjgq8f7llqxaz8pghz345zwii"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
+                       ("rust-cargo-metadata" ,rust-cargo-metadata-0.19)
+                       ("rust-derive-builder" ,rust-derive-builder-0.20)
+                       ("rust-regex" ,rust-regex-1)
+                       ("rust-rustc-version" ,rust-rustc-version-0.4)
+                       ("rust-rustversion" ,rust-rustversion-1)
+                       ("rust-sysinfo" ,rust-sysinfo-0.32)
+                       ("rust-time" ,rust-time-0.3)
+                       ("rust-vergen-lib" ,rust-vergen-lib-0.1))))
+    (home-page "https://github.com/rustyhorde/vergen")
+    (synopsis
+     "Generate 'cargo:rustc-env' instructions via 'build.rs' for use in your code via the 'env!' macro")
+    (description
+     "This package provides Generate cargo:rustc-env instructions via build.rs for use in your code via the
+env! macro.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-vergen-8
   (package
     (name "rust-vergen")
-- 
2.47.1





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

* [bug#75391] [PATCH 03/12] gnu: Add rust-vergen-lib-0.1.
  2025-01-05 22:49 [bug#75391] [PATCH rust-team 00/12] gnu: Add wallust Andrew Wong via Guix-patches via
  2025-01-05 23:01 ` [bug#75391] [PATCH 01/12] " Andrew Wong via Guix-patches via
  2025-01-05 23:01 ` [bug#75391] [PATCH 02/12] gnu: Add rust-vergen-9 Andrew Wong via Guix-patches via
@ 2025-01-05 23:01 ` Andrew Wong via Guix-patches via
  2025-01-05 23:01 ` [bug#75391] [PATCH 04/12] gnu: Add rust-vergen-git2-1 Andrew Wong via Guix-patches via
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Andrew Wong via Guix-patches via @ 2025-01-05 23:01 UTC (permalink / raw)
  To: 75391; +Cc: Andrew Wong, Efraim Flashner

* gnu/packages/crates-io.scm (rust-vergen-lib-0.1): New variable.

Change-Id: I2beff3f2636a572a748ab9611b0216c060401d53
---
 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 6a11844b18..d32eed0b66 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -89660,6 +89660,29 @@ (define-public rust-vergen-3
        #:cargo-development-inputs (("rust-lazy-static" ,rust-lazy-static-1)
                                    ("rust-regex" ,rust-regex-1))))))
 
+(define-public rust-vergen-lib-0.1
+  (package
+    (name "rust-vergen-lib")
+    (version "0.1.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "vergen-lib" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0ix19k2kvn4hzhhl6nld9h7fh1qh5z7j51z5rn2zq28wfpk6giy0"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
+                       ("rust-derive-builder" ,rust-derive-builder-0.20)
+                       ("rust-rustversion" ,rust-rustversion-1))))
+    (home-page "https://github.com/rustyhorde/vergen")
+    (synopsis "Common code used to support the vergen libraries")
+    (description
+     "This package provides Common code used to support the vergen libraries.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-version-check-0.9
   (package
     (name "rust-version-check")
-- 
2.47.1





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

* [bug#75391] [PATCH 04/12] gnu: Add rust-vergen-git2-1.
  2025-01-05 22:49 [bug#75391] [PATCH rust-team 00/12] gnu: Add wallust Andrew Wong via Guix-patches via
                   ` (2 preceding siblings ...)
  2025-01-05 23:01 ` [bug#75391] [PATCH 03/12] gnu: Add rust-vergen-lib-0.1 Andrew Wong via Guix-patches via
@ 2025-01-05 23:01 ` Andrew Wong via Guix-patches via
  2025-01-05 23:01 ` [bug#75391] [PATCH 05/12] gnu: Add rust-fast-image-resize-5 Andrew Wong via Guix-patches via
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Andrew Wong via Guix-patches via @ 2025-01-05 23:01 UTC (permalink / raw)
  To: 75391; +Cc: Andrew Wong, Efraim Flashner

* gnu/packages/crates-io.scm (rust-vergen-git2-1): New variable.

Change-Id: Ic70fc7f6e1062e54c70554f67033bac7909322d4
---
 gnu/packages/crates-io.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d32eed0b66..9e04e17965 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -89660,6 +89660,35 @@ (define-public rust-vergen-3
        #:cargo-development-inputs (("rust-lazy-static" ,rust-lazy-static-1)
                                    ("rust-regex" ,rust-regex-1))))))
 
+(define-public rust-vergen-git2-1
+  (package
+    (name "rust-vergen-git2")
+    (version "1.0.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "vergen-git2" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1mri3bffr6578cigqrpcn8b0bfcgkvbskdxswg8ym7vlv1ly0qsy"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
+                       ("rust-derive-builder" ,rust-derive-builder-0.20)
+                       ("rust-git2" ,rust-git2-0.19)
+                       ("rust-rustversion" ,rust-rustversion-1)
+                       ("rust-time" ,rust-time-0.3)
+                       ("rust-vergen" ,rust-vergen-9)
+                       ("rust-vergen-lib" ,rust-vergen-lib-0.1))))
+    (home-page "https://github.com/rustyhorde/vergen")
+    (synopsis
+     "Generate 'cargo:rustc-env' instructions via 'build.rs' for use in your code via the 'env!' macro")
+    (description
+     "This package provides Generate cargo:rustc-env instructions via build.rs for use in your code via the
+env! macro.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-vergen-lib-0.1
   (package
     (name "rust-vergen-lib")
-- 
2.47.1





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

* [bug#75391] [PATCH 05/12] gnu: Add rust-fast-image-resize-5.
  2025-01-05 22:49 [bug#75391] [PATCH rust-team 00/12] gnu: Add wallust Andrew Wong via Guix-patches via
                   ` (3 preceding siblings ...)
  2025-01-05 23:01 ` [bug#75391] [PATCH 04/12] gnu: Add rust-vergen-git2-1 Andrew Wong via Guix-patches via
@ 2025-01-05 23:01 ` Andrew Wong via Guix-patches via
  2025-01-05 23:01 ` [bug#75391] [PATCH 06/12] gnu: Add rust-kmeans-colors-0.6 Andrew Wong via Guix-patches via
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Andrew Wong via Guix-patches via @ 2025-01-05 23:01 UTC (permalink / raw)
  To: 75391; +Cc: Andrew Wong, Efraim Flashner

* gnu/packages/crates-graphics.scm (rust-fast-image-resize-5): New variable.

Change-Id: Ie0f755bc77ec019a0a8a8c75e1140337343acba0
---
 gnu/packages/crates-graphics.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index b00da5ba2f..5fc2a1c0cf 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -1411,6 +1411,34 @@ (define-public rust-exr-1
     (description "Read and write OpenEXR files without any unsafe code")
     (license license:bsd-3)))
 
+(define-public rust-fast-image-resize-5
+  (package
+    (name "rust-fast-image-resize")
+    (version "5.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "fast_image_resize" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1qp95mkllxmkc3q0iwh1rj9cgv0rixpjz5wdw6avv2n17g090y7c"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-bytemuck" ,rust-bytemuck-1)
+                       ("rust-cfg-if" ,rust-cfg-if-1)
+                       ("rust-document-features" ,rust-document-features-0.2)
+                       ("rust-image" ,rust-image-0.25)
+                       ("rust-num-traits" ,rust-num-traits-0.2)
+                       ("rust-rayon" ,rust-rayon-1)
+                       ("rust-thiserror" ,rust-thiserror-1))))
+    (home-page "https://github.com/cykooz/fast_image_resize")
+    (synopsis
+     "Library for fast image resizing with using of SIMD instructions")
+    (description
+     "This package provides Library for fast image resizing with using of SIMD instructions.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-fast-image-resize-2
   (package
     (name "rust-fast-image-resize")
-- 
2.47.1





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

* [bug#75391] [PATCH 06/12] gnu: Add rust-kmeans-colors-0.6.
  2025-01-05 22:49 [bug#75391] [PATCH rust-team 00/12] gnu: Add wallust Andrew Wong via Guix-patches via
                   ` (4 preceding siblings ...)
  2025-01-05 23:01 ` [bug#75391] [PATCH 05/12] gnu: Add rust-fast-image-resize-5 Andrew Wong via Guix-patches via
@ 2025-01-05 23:01 ` Andrew Wong via Guix-patches via
  2025-01-05 23:01 ` [bug#75391] [PATCH 07/12] gnu: Add rust-documented-0.6 Andrew Wong via Guix-patches via
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Andrew Wong via Guix-patches via @ 2025-01-05 23:01 UTC (permalink / raw)
  To: 75391; +Cc: Andrew Wong, Efraim Flashner

* gnu/packages/crates-graphics.scm (rust-kmeans-colors-0.6): New variable.

Change-Id: Id64566bd05627fc05621aa3e318686e150452166
---
 gnu/packages/crates-graphics.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index 5fc2a1c0cf..e2a0d1f3c7 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -2762,6 +2762,35 @@ (define-public rust-khronos-egl-5
     (description "This package provides Rust bindings for EGL.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-kmeans-colors-0.6
+  (package
+    (name "rust-kmeans-colors")
+    (version "0.6.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "kmeans_colors" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "153qfhvvm7iisqjy6sy7mfw8x9h8y9y25z7ygvfkbp0i53xmz8g9"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-image" ,rust-image-0.24)
+                       ("rust-num-traits" ,rust-num-traits-0.2)
+                       ("rust-palette" ,rust-palette-0.7)
+                       ("rust-rand" ,rust-rand-0.8)
+                       ("rust-rand-chacha" ,rust-rand-chacha-0.3)
+                       ("rust-structopt" ,rust-structopt-0.3))))
+    (home-page "https://github.com/okaneco/kmeans-colors")
+    (synopsis
+     "Simple k-means clustering to find dominant colors in images.
+Backed by a generic k-means implementation offered as a standalone library")
+    (description
+     "This package provides Simple k-means clustering to find dominant colors in images.  Backed by a
+generic k-means implementation offered as a standalone library.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-libdav1d-sys-0.6
   (package
     (name "rust-libdav1d-sys")
-- 
2.47.1





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

* [bug#75391] [PATCH 07/12] gnu: Add rust-documented-0.6.
  2025-01-05 22:49 [bug#75391] [PATCH rust-team 00/12] gnu: Add wallust Andrew Wong via Guix-patches via
                   ` (5 preceding siblings ...)
  2025-01-05 23:01 ` [bug#75391] [PATCH 06/12] gnu: Add rust-kmeans-colors-0.6 Andrew Wong via Guix-patches via
@ 2025-01-05 23:01 ` Andrew Wong via Guix-patches via
  2025-01-05 23:01 ` [bug#75391] [PATCH 08/12] gnu: Add rust-documented-macros-0.6 Andrew Wong via Guix-patches via
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Andrew Wong via Guix-patches via @ 2025-01-05 23:01 UTC (permalink / raw)
  To: 75391; +Cc: Andrew Wong, Efraim Flashner

* gnu/packages/crates-io.scm (rust-documented-0.6): New variable.

Change-Id: I2cb45d5f549102932efa9d231436adb51670eab0
---
 gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9e04e17965..1ed6a81dc0 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -21580,6 +21580,30 @@ (define-public rust-document-features-0.2
 @code{Cargo.toml}.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-documented-0.6
+  (package
+    (name "rust-documented")
+    (version "0.6.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "documented" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1zc7akchjkwnsl0hnzygwad58sfnvrvkcl7w117679cnbg9zxbgy"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-documented-macros" ,rust-documented-macros-0.6)
+                       ("rust-phf" ,rust-phf-0.11)
+                       ("rust-thiserror" ,rust-thiserror-1))))
+    (home-page "https://github.com/cyqsimon/documented")
+    (synopsis
+     "Derive and attribute macros for accessing your type's documentation at runtime")
+    (description
+     "This package provides Derive and attribute macros for accessing your type's documentation at runtime.")
+    (license license:expat)))
+
 (define-public rust-dogged-0.2
   (package
     (name "rust-dogged")
-- 
2.47.1





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

* [bug#75391] [PATCH 08/12] gnu: Add rust-documented-macros-0.6.
  2025-01-05 22:49 [bug#75391] [PATCH rust-team 00/12] gnu: Add wallust Andrew Wong via Guix-patches via
                   ` (6 preceding siblings ...)
  2025-01-05 23:01 ` [bug#75391] [PATCH 07/12] gnu: Add rust-documented-0.6 Andrew Wong via Guix-patches via
@ 2025-01-05 23:01 ` Andrew Wong via Guix-patches via
  2025-01-05 23:01 ` [bug#75391] [PATCH 09/12] gnu: Add rust-new-string-template-1 Andrew Wong via Guix-patches via
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Andrew Wong via Guix-patches via @ 2025-01-05 23:01 UTC (permalink / raw)
  To: 75391; +Cc: Andrew Wong, Efraim Flashner

* gnu/packages/crates-io.scm (rust-documented-macros-0.6): New variable.

Change-Id: I0713a9ed78f6e075241e190de922d9579b370bf7
---
 gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1ed6a81dc0..94909c8ef8 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -21604,6 +21604,31 @@ (define-public rust-documented-0.6
      "This package provides Derive and attribute macros for accessing your type's documentation at runtime.")
     (license license:expat)))
 
+(define-public rust-documented-macros-0.6
+  (package
+    (name "rust-documented-macros")
+    (version "0.6.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "documented-macros" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0qwclr8ymp5n5fyb6sri9dl36va3ana50clkgwmf7110lva5jdlp"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-convert-case" ,rust-convert-case-0.6)
+                       ("rust-optfield" ,rust-optfield-0.3)
+                       ("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-2))))
+    (home-page "https://github.com/cyqsimon/documented")
+    (synopsis "Derive and attribute macros for `documented`")
+    (description
+     "This package provides Derive and attribute macros for `documented`.")
+    (license license:expat)))
+
 (define-public rust-dogged-0.2
   (package
     (name "rust-dogged")
-- 
2.47.1





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

* [bug#75391] [PATCH 09/12] gnu: Add rust-new-string-template-1.
  2025-01-05 22:49 [bug#75391] [PATCH rust-team 00/12] gnu: Add wallust Andrew Wong via Guix-patches via
                   ` (7 preceding siblings ...)
  2025-01-05 23:01 ` [bug#75391] [PATCH 08/12] gnu: Add rust-documented-macros-0.6 Andrew Wong via Guix-patches via
@ 2025-01-05 23:01 ` Andrew Wong via Guix-patches via
  2025-01-05 23:01 ` [bug#75391] [PATCH 10/12] gnu: Add rust-optfield-0.3 Andrew Wong via Guix-patches via
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Andrew Wong via Guix-patches via @ 2025-01-05 23:01 UTC (permalink / raw)
  To: 75391; +Cc: Andrew Wong, Efraim Flashner

* gnu/packages/crates-io.scm (rust-new-string-template-1): New variable.

Change-Id: I41b95af465fb52037bdfc554e6ce458472f944ae
---
 gnu/packages/crates-io.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 94909c8ef8..26c3837721 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -45101,6 +45101,28 @@ (define-public rust-new-debug-unreachable-1
 release (fork of debug_unreachable)")
     (license license:expat)))
 
+(define-public rust-new-string-template-1
+  (package
+    (name "rust-new-string-template")
+    (version "1.5.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "new_string_template" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1svmx6a6qqz70mhrgz77bi9ifpnlpwpslqzvdbw557jc6d9ih3y5"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-lazy-static" ,rust-lazy-static-1)
+                       ("rust-regex" ,rust-regex-1))))
+    (home-page "https://github.com/hasezoey/new_string_template")
+    (synopsis "Simple Customizable String-Templating Library for Rust")
+    (description
+     "This package provides Simple Customizable String-Templating Library for Rust.")
+    (license license:expat)))
+
 ;; Keep this package for future packaging of NewsFlash.
 (define-public rust-news-flash-1
   (package
-- 
2.47.1





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

* [bug#75391] [PATCH 10/12] gnu: Add rust-optfield-0.3.
  2025-01-05 22:49 [bug#75391] [PATCH rust-team 00/12] gnu: Add wallust Andrew Wong via Guix-patches via
                   ` (8 preceding siblings ...)
  2025-01-05 23:01 ` [bug#75391] [PATCH 09/12] gnu: Add rust-new-string-template-1 Andrew Wong via Guix-patches via
@ 2025-01-05 23:01 ` Andrew Wong via Guix-patches via
  2025-01-05 23:01 ` [bug#75391] [PATCH 11/12] gnu: rust-owo-colors-4: Update to 4.1.0 Andrew Wong via Guix-patches via
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Andrew Wong via Guix-patches via @ 2025-01-05 23:01 UTC (permalink / raw)
  To: 75391; +Cc: Andrew Wong, Efraim Flashner

* gnu/packages/crates-io.scm (rust-optfield-0.3): New variable.

Change-Id: I5686f2d92365833459959312f8da6a312d558d85
---
 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 26c3837721..6ea089ff04 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -49230,6 +49230,29 @@ (define-public rust-opml-1
     (description "This package provides an OPML parser for Rust.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-optfield-0.3
+  (package
+    (name "rust-optfield")
+    (version "0.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "optfield" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "079a5n7lhqsj444fkgk580vra5v2nhym7czwnky9iip9rljz0ngs"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-2))))
+    (home-page "https://github.com/roignpar/optfield")
+    (synopsis "macro that generates structs with optional fields")
+    (description
+     "This package provides a macro that generates structs with optional fields.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-optick-1
   (package
     (name "rust-optick")
-- 
2.47.1





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

* [bug#75391] [PATCH 11/12] gnu: rust-owo-colors-4: Update to 4.1.0.
  2025-01-05 22:49 [bug#75391] [PATCH rust-team 00/12] gnu: Add wallust Andrew Wong via Guix-patches via
                   ` (9 preceding siblings ...)
  2025-01-05 23:01 ` [bug#75391] [PATCH 10/12] gnu: Add rust-optfield-0.3 Andrew Wong via Guix-patches via
@ 2025-01-05 23:01 ` Andrew Wong via Guix-patches via
  2025-01-05 23:01 ` [bug#75391] [PATCH 12/12] gnu: Add rust-spinners-4 Andrew Wong via Guix-patches via
  2025-01-07  8:25 ` bug#75391: [PATCH rust-team 00/12] gnu: Add wallust Efraim Flashner
  12 siblings, 0 replies; 14+ messages in thread
From: Andrew Wong via Guix-patches via @ 2025-01-05 23:01 UTC (permalink / raw)
  To: 75391; +Cc: Andrew Wong, Efraim Flashner

* gnu/packages/crates-io.scm (rust-owo-colors-4): Update to 4.1.0.

Change-Id: I003a2e2acfe0782444bbd0dd413746cbb6976a39
---
 gnu/packages/crates-io.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 6ea089ff04..d95d6d3b0c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -50148,14 +50148,14 @@ (define-public rust-owning-ref-0.3
 (define-public rust-owo-colors-4
   (package
     (name "rust-owo-colors")
-    (version "4.0.0")
+    (version "4.1.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "owo-colors" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "0grsk47cllj0s4nc4qxvy4gdhj2lyiglbqx4lmw2m7grdmq59zya"))))
+        (base32 "0mms4sbisxm1w8v08qz85m90sv861xg4ahil85587kb9cmzpcdzv"))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs (("rust-supports-color" ,rust-supports-color-2))))
-- 
2.47.1





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

* [bug#75391] [PATCH 12/12] gnu: Add rust-spinners-4.
  2025-01-05 22:49 [bug#75391] [PATCH rust-team 00/12] gnu: Add wallust Andrew Wong via Guix-patches via
                   ` (10 preceding siblings ...)
  2025-01-05 23:01 ` [bug#75391] [PATCH 11/12] gnu: rust-owo-colors-4: Update to 4.1.0 Andrew Wong via Guix-patches via
@ 2025-01-05 23:01 ` Andrew Wong via Guix-patches via
  2025-01-07  8:25 ` bug#75391: [PATCH rust-team 00/12] gnu: Add wallust Efraim Flashner
  12 siblings, 0 replies; 14+ messages in thread
From: Andrew Wong via Guix-patches via @ 2025-01-05 23:01 UTC (permalink / raw)
  To: 75391; +Cc: Andrew Wong, Efraim Flashner

* gnu/packages/crates-shell.scm (rust-spinners-4): New variable.

Change-Id: I04666a1b0edf7cbceba845950b1e8ea5634a761b
---
 gnu/packages/crates-shell.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/crates-shell.scm b/gnu/packages/crates-shell.scm
index ee5344183c..c3db985261 100644
--- a/gnu/packages/crates-shell.scm
+++ b/gnu/packages/crates-shell.scm
@@ -1130,3 +1130,25 @@ (define-public rust-reedline-0.38
      "This package provides a readline-like crate for CLI text input.")
     (license license:expat)))
 
+(define-public rust-spinners-4
+  (package
+    (name "rust-spinners")
+    (version "4.1.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "spinners" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "10jgzdy6x79ipnfhavn46zbg4hlx98mcfr7p4f4j774b6mzr9vx0"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-lazy-static" ,rust-lazy-static-1)
+                       ("rust-maplit" ,rust-maplit-1)
+                       ("rust-strum" ,rust-strum-0.24))))
+    (home-page "https://github.com/fgribreau/spinners")
+    (synopsis "🛎 60+ Elegant terminal spinners for Rust")
+    (description
+     "This package provides 🛎 60+ Elegant terminal spinners for Rust.")
+    (license license:expat)))
-- 
2.47.1





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

* bug#75391: [PATCH rust-team 00/12] gnu: Add wallust.
  2025-01-05 22:49 [bug#75391] [PATCH rust-team 00/12] gnu: Add wallust Andrew Wong via Guix-patches via
                   ` (11 preceding siblings ...)
  2025-01-05 23:01 ` [bug#75391] [PATCH 12/12] gnu: Add rust-spinners-4 Andrew Wong via Guix-patches via
@ 2025-01-07  8:25 ` Efraim Flashner
  12 siblings, 0 replies; 14+ messages in thread
From: Efraim Flashner @ 2025-01-07  8:25 UTC (permalink / raw)
  To: Andrew Wong; +Cc: 75391-done

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

Thanks for the patches.  I had to make a couple of changes, mostly
adding cargo-development-inputs so I could build the packages.

Patches pushed to the rust-team branch!

On Sun, Jan 05, 2025 at 05:49:48PM -0500, Andrew Wong wrote:
> This patch series adds the "Wallust" theme generator. This is my first patch series of this size, so please LMK if I missed anything!
> 
> Andrew Wong (12):
>   gnu: Add wallust.
>   gnu: Add rust-vergen-9.
>   gnu: Add rust-vergen-lib-0.1.
>   gnu: Add rust-vergen-git2-1.
>   gnu: Add rust-fast-image-resize-5.
>   gnu: Add rust-kmeans-colors-0.6.
>   gnu: Add rust-documented-0.6.
>   gnu: Add rust-documented-macros-0.6.
>   gnu: Add rust-new-string-template-1.
>   gnu: Add rust-optfield-0.3.
>   gnu: rust-owo-colors-4: Update to 4.1.0.
>   gnu: Add rust-spinners-4.
> 
>  gnu/packages/crates-graphics.scm |  57 ++++++++++
>  gnu/packages/crates-io.scm       | 181 ++++++++++++++++++++++++++++++-
>  gnu/packages/crates-shell.scm    |  22 ++++
>  gnu/packages/rust-apps.scm       | 108 ++++++++++++++++++
>  4 files changed, 366 insertions(+), 2 deletions(-)
> 
> 
> base-commit: 4ee631832635a34bb38b4d0dc650e9b34fc14dd5
> -- 
> 2.47.1
> 
> 
> 

-- 
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] 14+ messages in thread

end of thread, other threads:[~2025-01-07  8:26 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-05 22:49 [bug#75391] [PATCH rust-team 00/12] gnu: Add wallust Andrew Wong via Guix-patches via
2025-01-05 23:01 ` [bug#75391] [PATCH 01/12] " Andrew Wong via Guix-patches via
2025-01-05 23:01 ` [bug#75391] [PATCH 02/12] gnu: Add rust-vergen-9 Andrew Wong via Guix-patches via
2025-01-05 23:01 ` [bug#75391] [PATCH 03/12] gnu: Add rust-vergen-lib-0.1 Andrew Wong via Guix-patches via
2025-01-05 23:01 ` [bug#75391] [PATCH 04/12] gnu: Add rust-vergen-git2-1 Andrew Wong via Guix-patches via
2025-01-05 23:01 ` [bug#75391] [PATCH 05/12] gnu: Add rust-fast-image-resize-5 Andrew Wong via Guix-patches via
2025-01-05 23:01 ` [bug#75391] [PATCH 06/12] gnu: Add rust-kmeans-colors-0.6 Andrew Wong via Guix-patches via
2025-01-05 23:01 ` [bug#75391] [PATCH 07/12] gnu: Add rust-documented-0.6 Andrew Wong via Guix-patches via
2025-01-05 23:01 ` [bug#75391] [PATCH 08/12] gnu: Add rust-documented-macros-0.6 Andrew Wong via Guix-patches via
2025-01-05 23:01 ` [bug#75391] [PATCH 09/12] gnu: Add rust-new-string-template-1 Andrew Wong via Guix-patches via
2025-01-05 23:01 ` [bug#75391] [PATCH 10/12] gnu: Add rust-optfield-0.3 Andrew Wong via Guix-patches via
2025-01-05 23:01 ` [bug#75391] [PATCH 11/12] gnu: rust-owo-colors-4: Update to 4.1.0 Andrew Wong via Guix-patches via
2025-01-05 23:01 ` [bug#75391] [PATCH 12/12] gnu: Add rust-spinners-4 Andrew Wong via Guix-patches via
2025-01-07  8:25 ` bug#75391: [PATCH rust-team 00/12] gnu: Add wallust 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).