unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#56010] [PATCH] Add treefmt
@ 2022-06-16  4:51 Gabriel Arazas
  2022-06-16  5:00 ` [bug#56010] [PATCH 1/2] gnu: rust-sha-1-0.9: Update to 0.9.8 Gabriel Arazas
  2022-09-01  8:18 ` bug#56010: [PATCH] " Efraim Flashner
  0 siblings, 2 replies; 4+ messages in thread
From: Gabriel Arazas @ 2022-06-16  4:51 UTC (permalink / raw)
  To: 56010

Just getting familiar with the workflow of sending a patch series.




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

* [bug#56010] [PATCH 1/2] gnu: rust-sha-1-0.9: Update to 0.9.8.
  2022-06-16  4:51 [bug#56010] [PATCH] Add treefmt Gabriel Arazas
@ 2022-06-16  5:00 ` Gabriel Arazas
  2022-06-16  5:00   ` [bug#56010] [PATCH 2/2] gnu: Add treefmt Gabriel Arazas
  2022-09-01  8:18 ` bug#56010: [PATCH] " Efraim Flashner
  1 sibling, 1 reply; 4+ messages in thread
From: Gabriel Arazas @ 2022-06-16  5:00 UTC (permalink / raw)
  To: 56010; +Cc: Gabriel Arazas

* gnu/packages/crates-io.scm (rust-sha-1-0.9): Update to 0.9.8.
---
 gnu/packages/crates-io.scm | 30 ++++++++++++++----------------
 1 file changed, 14 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 452a22f0f2..dd68c249a8 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -55306,25 +55306,23 @@ (define-public rust-sha-1-0.9
   (package
     (inherit rust-sha-1-0.10)
     (name "rust-sha-1")
-    (version "0.9.1")
-    (source
-     (origin
-       (method url-fetch)
-       (uri (crate-uri "sha-1" version))
-       (file-name
-        (string-append name "-" version ".tar.gz"))
-       (sha256
-        (base32
-         "0w37j7swjkbzgi9mf7ihkw0zfik6vl97fs6jdpqs6r68hvm3c2hp"))))
+    (version "0.9.8")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "sha-1" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "19jibp8l9k5v4dnhj5kfhaczdfd997h22qz0hin6pw9wvc9ngkcr"))))
+    (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs
-       (("rust-block-buffer" ,rust-block-buffer-0.9)
-        ("rust-cfg-if" ,rust-cfg-if-0.1)
-        ("rust-cpuid-bool" ,rust-cpuid-bool-0.1)
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-block-buffer" ,rust-block-buffer-0.9) ("rust-cfg-if" ,rust-cfg-if-1)
+        ("rust-cpufeatures" ,rust-cpufeatures-0.2)
         ("rust-digest" ,rust-digest-0.9)
-        ("rust-libc" ,rust-libc-0.2)
         ("rust-opaque-debug" ,rust-opaque-debug-0.3)
-        ("rust-sha1-asm" ,rust-sha1-asm-0.4))
+        ("rust-sha1-asm" ,rust-sha1-asm-0.5))
        #:cargo-development-inputs
        (("rust-digest" ,rust-digest-0.9)
         ("rust-hex-literal" ,rust-hex-literal-0.2))))))

base-commit: a431d1dbc5a009ad852b55e2300465b49bdce362
-- 
2.36.1





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

* [bug#56010] [PATCH 2/2] gnu: Add treefmt.
  2022-06-16  5:00 ` [bug#56010] [PATCH 1/2] gnu: rust-sha-1-0.9: Update to 0.9.8 Gabriel Arazas
@ 2022-06-16  5:00   ` Gabriel Arazas
  0 siblings, 0 replies; 4+ messages in thread
From: Gabriel Arazas @ 2022-06-16  5:00 UTC (permalink / raw)
  To: 56010; +Cc: Gabriel Arazas

* gnu/packages/rust-apps.scm (treefmt): New variable.
---
 gnu/packages/rust-apps.scm | 51 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 6d97e289c2..e84528dff2 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -1129,6 +1129,57 @@ (define-public tectonic
 of support files.")
     (license license:expat)))
 
+(define-public treefmt
+  (package
+    (name "treefmt")
+    (version "0.4.1")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "treefmt" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1rarg6rffzl1cf6r167h9p14wr696kwnzr85kwbdy7x7x5zpj5li"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-anyhow" ,rust-anyhow-1) ("rust-console" ,rust-console-0.13)
+                       ("rust-directories" ,rust-directories-3)
+                       ("rust-filetime" ,rust-filetime-0.2)
+                       ("rust-globset" ,rust-globset-0.4)
+                       ("rust-ignore" ,rust-ignore-0.4)
+                       ("rust-log" ,rust-log-0.4)
+                       ("rust-path-clean" ,rust-path-clean-0.1)
+                       ("rust-rayon" ,rust-rayon-1)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-serde-json" ,rust-serde-json-1)
+                       ("rust-sha-1" ,rust-sha-1-0.9)
+                       ("rust-structopt" ,rust-structopt-0.3)
+                       ("rust-tempfile" ,rust-tempfile-3)
+                       ("rust-toml" ,rust-toml-0.5)
+                       ("rust-which" ,rust-which-4))
+       #:cargo-development-inputs
+       (("rust-criterion" ,rust-criterion-0.3))))
+    (home-page "https://numtide.github.io/treefmt")
+    (synopsis "Command-line application to format the code tree")
+    (description
+     "This application provides a way to unify the formatting process of the
+codebase. It is nice for large code trees where using multiple formatters are
+common. @command{treefmt} comes with the following features.
+
+@itemize @bullet
+@item Unified CLI and output.
+@item Runs formatters in parallel.
+@item Cache changed files for performance.
+@end itemize
+
+The application does have some design decisions to keep in mind.
+
+@itemize @bullet
+@item The source code is kept under version control, making it possible to revert and check changes.
+@item Only one formatter per file, making outputs idempotent.
+@end itemize")
+    (license license:expat)))
+
 (define-public hex
   (package
     (name "hex")
-- 
2.36.1





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

* bug#56010: [PATCH] Add treefmt
  2022-06-16  4:51 [bug#56010] [PATCH] Add treefmt Gabriel Arazas
  2022-06-16  5:00 ` [bug#56010] [PATCH 1/2] gnu: rust-sha-1-0.9: Update to 0.9.8 Gabriel Arazas
@ 2022-09-01  8:18 ` Efraim Flashner
  1 sibling, 0 replies; 4+ messages in thread
From: Efraim Flashner @ 2022-09-01  8:18 UTC (permalink / raw)
  To: Gabriel Arazas; +Cc: 56010-done

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

On Thu, Jun 16, 2022 at 12:51:14PM +0800, Gabriel Arazas wrote:
> Just getting familiar with the workflow of sending a patch series.
> 

Thanks for sending the patches. I rounded out the commit message of the
first patch and skipped installing the sources in the second patch. And
some minor layout changes in the code to minimize the diff.

I also added a copyright line for you. Patches pushed! Thanks.

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

end of thread, other threads:[~2022-09-01  9:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-16  4:51 [bug#56010] [PATCH] Add treefmt Gabriel Arazas
2022-06-16  5:00 ` [bug#56010] [PATCH 1/2] gnu: rust-sha-1-0.9: Update to 0.9.8 Gabriel Arazas
2022-06-16  5:00   ` [bug#56010] [PATCH 2/2] gnu: Add treefmt Gabriel Arazas
2022-09-01  8:18 ` bug#56010: [PATCH] " 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).