Subject: [gnu: Add dua-cli. 27/27] gnu: Add dua-cli.

From: antlers <[email-masked]>
Date: Sat, 18 Jun 2022 12:56:56 -0700

* gnu/packages/rust-apps.scm (dua-cli): New variable.
---
:100644 100644 6d97e289c2 1d785d2e61 M	gnu/packages/rust-apps.scm
 gnu/packages/rust-apps.scm | 42 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 6d97e289c2..1d785d2e61 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -323,6 +323,48 @@ (define-public drill
 Ansible syntax.  Benchmark files can be written in YAML.")
     (license license:gpl3)))
 
+(define-public dua-cli
+  (package
+    (name "dua-cli")
+    (version "2.17.7")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "dua-cli" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0ch168j4crwj18443rwgdnzxbnx74klh4wwd6dnxjrycx7lzsqhf"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f ; missing files
+       #:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
+                       ("rust-atty" ,rust-atty-0.2)
+                       ("rust-byte-unit" ,rust-byte-unit-4)
+                       ("rust-clap" ,rust-clap-3)
+                       ("rust-colored" ,rust-colored-2)
+                       ("rust-crosstermion" ,rust-crosstermion-0.9)
+                       ("rust-filesize" ,rust-filesize-0.2)
+                       ("rust-itertools" ,rust-itertools-0.10)
+                       ("rust-jwalk" ,rust-jwalk-0.6)
+                       ("rust-num-cpus" ,rust-num-cpus-1)
+                       ("rust-open" ,rust-open-3)
+                       ("rust-petgraph" ,rust-petgraph-0.6)
+                       ("rust-sysinfo" ,rust-sysinfo-0.23)
+                       ("rust-trash" ,rust-trash-2)
+                       ("rust-tui" ,rust-tui-0.17)
+                       ("rust-tui-react" ,rust-tui-react-0.17)
+                       ("rust-unicode-segmentation" ,rust-unicode-segmentation-1)
+                       ("rust-wild" ,rust-wild-2))
+       #:cargo-development-inputs
+       (("rust-pretty-assertions" ,rust-pretty-assertions-1.2))))
+    (home-page "https://github.com/Byron/dua-cli")
+    (synopsis
+     "Tool to conveniently learn about the disk usage of directories, fast!")
+    (description
+     "This package provides a tool to conveniently learn about the disk usage of
+directories, fast!")
+    (license license:expat)))
+
 (define-public dutree
   (package
     (name "dutree")
-- 
2.36.0