diff mbox series

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

Message ID 20201120142716.41949-34-joseph@lafreniere.xyz
State New
Headers show
Series gnu: Add ripgrep-all. | expand

Checks

Context Check Description
cbaines/issue success View issue
cbaines/applying patch success View Laminar job
cbaines/git branch success View Git branch
cbaines/comparison success View comparision
cbaines/submitting builds success
cbaines/submitting builds success

Commit Message

Joseph LaFreniere Nov. 20, 2020, 2:27 p.m. UTC
* 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 mbox series

Patch

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")