[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49867] [PATCH v2 30/31] gnu: Add ocaml-magic-mime.
From: |
pukkamustard |
Subject: |
[bug#49867] [PATCH v2 30/31] gnu: Add ocaml-magic-mime. |
Date: |
Mon, 9 Aug 2021 07:01:23 +0000 |
* gnu/packages/ocaml.scm (ocaml-magic-mime): New variable.
---
gnu/packages/ocaml.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index b35994231d..42e6fd2e94 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -7424,6 +7424,31 @@ JavaScript backend, or @code{ocaml-cohttp-mirage} for
the MirageOS unikernel
version of the library. All of these implementations share the same IO logic
from this module.")))
+(define-public ocaml-magic-mime
+ (package
+ (name "ocaml-magic-mime")
+ (version "1.2.0")
+ (home-page "https://github.com/mirage/ocaml-magic-mime")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1pmwxw5n0lxbp7b9z1wplkn0cfl816cbacx3cdj2912n5zyjpjnk"))))
+ (build-system dune-build-system)
+ (arguments `(#:test-target "."))
+ (synopsis "OCaml library for mapping filenames to common MIME types")
+ (description "This library contains a database of MIME types that maps
+filename extensions into MIME types suitable for use in many Internet
+protocols such as HTTP or e-mail. It is generated from the @file{mime.types}
+file found in Unix systems, but has no dependency on a filesystem since it
+includes the contents of the database as an ML datastructure.")
+ (license license:isc)))
+
(define-public ocaml-domain-name
(package
(name "ocaml-domain-name")
--
2.32.0
- [bug#49867] [PATCH v2 16/31] gnu: Add ocaml-mirage-crypto-rng., (continued)
- [bug#49867] [PATCH v2 16/31] gnu: Add ocaml-mirage-crypto-rng., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 22/31] gnu: Add ocaml-mirage-crypto-ec., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 19/31] gnu: Add ocaml-asn1-combinators., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 25/31] gnu: Add ocaml-cstruct-unix., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 20/31] gnu: Add ocaml-ppx-deriving., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 21/31] gnu: Add ocaml-ppx-deriving-yojson., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 27/31] gnu: Add ocaml-ca-certs., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 28/31] gnu: Add ocaml-lwt-ssl., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 29/31] gnu: Add ocaml-conduit-lwt-unix., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 26/31] gnu: Add ocaml-x509., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 30/31] gnu: Add ocaml-magic-mime.,
pukkamustard <=
- [bug#49867] [PATCH v2 31/31] gnu: Add ocaml-cohttp-lwt-unix, pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 24/31] gnu: Add ocaml-pbkdf., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 23/31] gnu: Add ocaml-gmap., pukkamustard, 2021/08/09
- [bug#49867] [PATCH 00/29] gnu: Add ocaml-cohttp-lwt-unix., Xinglu Chen, 2021/08/09