summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilko Meyer <w@wmeyer.eu>2024-01-08 02:53:58 +0100
committerEfraim Flashner <efraim@flashner.co.il>2024-02-20 13:57:47 +0200
commit7bb4977851eb52a28ac923a6db88675e104956a4 (patch)
tree02da6d3b94d66a1b9d67d9aa79ce3a8c187026bc
parent4de29a01adbacef7cec0266ebc95a0430879ecc7 (diff)
gnu: Add rust-tree-magic-mini-3.
* gnu/packages/crates-io.scm (rust-tree-magic-mini-3): New variable. Change-Id: I05a85072376a90b53c7b97c8ceeba78e2ea7cee5 Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
-rw-r--r--gnu/packages/crates-io.scm29
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 73ed3abd19..6e39f170de 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -79228,6 +79228,35 @@ recycle bin.")
tree_magic_mini.")
(license license:gpl2+)))
+(define-public rust-tree-magic-mini-3
+ (package
+ (name "rust-tree-magic-mini")
+ (version "3.0.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "tree_magic_mini" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0vdazv3y1iggriwx5ksin72c2ds0xjdhx1yvmd5nxkya0w3gvbci"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:tests? #f ; Not all files included
+ #:cargo-inputs (("rust-bytecount" ,rust-bytecount-0.6)
+ ("rust-fnv" ,rust-fnv-1)
+ ("rust-lazy-static" ,rust-lazy-static-1)
+ ("rust-nom" ,rust-nom-7)
+ ("rust-once-cell" ,rust-once-cell-1)
+ ("rust-petgraph" ,rust-petgraph-0.6)
+ ("rust-tree-magic-db" ,rust-tree-magic-db-3))
+ #:cargo-development-inputs (("rust-bencher" ,rust-bencher-0.1))))
+ (home-page "https://github.com/mbrubeck/tree_magic/")
+ (synopsis
+ "Determines the MIME type of a file by traversing a filetype tree")
+ (description
+ "Determines the MIME type of a file by traversing a filetype tree.")
+ (license license:expat)))
+
(define-public rust-tree-magic-0.2
(package
(name "rust-tree-magic")