Message ID | 20210804071545.21181-28-pukkamustard@posteo.net |
---|---|
State | Accepted |
Headers | show |
Series | gnu: Add ocaml-cohttp-lwt-unix. | expand |
Context | Check | Description |
---|---|---|
cbaines/comparison | success | View comparision |
cbaines/git branch | success | View Git branch |
cbaines/applying patch | success | View Laminar job |
cbaines/issue | success | View issue |
On Wed, Aug 04 2021, pukkamustard wrote: > * 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 8904f2df19..d9e84cd7ad 100644 > --- a/gnu/packages/ocaml.scm > +++ b/gnu/packages/ocaml.scm > @@ -7248,6 +7248,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 `mime.types` file ^^^^^^^^^^ Nit: @file{mime.types}
Xinglu Chen <public@yoctocell.xyz> writes: >> + (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 >> `mime.types` file > ^^^^^^^^^^ > Nit: @file{mime.types} Fixed in V2.
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 8904f2df19..d9e84cd7ad 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -7248,6 +7248,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 `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")