Subject: [bug#44762] [PATCH 34/37] gnu: Add rust-tree-magic-fork-0.2.

From: Joseph LaFreniere <[email-masked]>
Date: Fri, 20 Nov 2020 08:27:13 -0600

* gnu/packages/crates-io.scm (rust-tree-magic-fork-0.2): New variable.
---
 gnu/packages/crates-io.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 960523adb9..16d38c7933 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -30485,6 +30485,42 @@ automatically instrumenting functions.")
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public rust-tree-magic-fork-0.2
+  (package
+    (name "rust-tree-magic-fork")
+    (version "0.2.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "tree-magic-fork" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1bqkd17ih1ixlarjw8p5h5q584j681vmwg1zkww873w2kg523fda"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-clap" ,rust-clap-2)
+        ("rust-fnv" ,rust-fnv-1)
+        ("rust-lazy-static" ,rust-lazy-static-1)
+        ("rust-nom" ,rust-nom-2)
+        ("rust-num-cpus" ,rust-num-cpus-1)
+        ("rust-parking-lot" ,rust-parking-lot-0.8)
+        ("rust-petgraph" ,rust-petgraph-0.5)
+        ("rust-scoped-threadpool" ,rust-scoped-threadpool-0.1)
+        ("rust-tabwriter" ,rust-tabwriter-1)
+        ("rust-walkdir" ,rust-walkdir-2))
+       #:features '("cli")
+       ;; "error[E0463]: can't find crate for `tree_magic`"
+       #:skip-build? #t))
+    (home-page "https://github.com/aahancoc/tree_magic")
+    (synopsis "Determine MIME type efficiently")
+    (description
+     "This package determines the MIME types of files by traversing a tree of
+filetypes.")
+    (license license:expat)))
+
 (define-public rust-treeline-0.1
   (package
     (name "rust-treeline")
-- 
2.29.1