forked from mirrors/nixpkgs
Adds ocaml-magic-mime
This OCaml 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. Homepage: https://github.com/mirage/ocaml-magic-mime
This commit is contained in:
parent
999241a907
commit
e64cd5feec
24
pkgs/development/ocaml-modules/magic-mime/default.nix
Normal file
24
pkgs/development/ocaml-modules/magic-mime/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ stdenv, fetchzip, ocaml, findlib }:
|
||||
|
||||
let version = "1.0.0"; in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "ocaml-magic-mime-${version}";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/mirage/ocaml-magic-mime/archive/v${version}.tar.gz";
|
||||
sha256 = "058d83hmxd5mjccxdm3ydchmhk2lca5jdg82jg0klsigmf4ida6v";
|
||||
};
|
||||
|
||||
buildInputs = [ ocaml findlib ];
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
meta = {
|
||||
homepage = https://github.com/mirage/ocaml-magic-mime;
|
||||
description = "Convert file extensions to MIME types";
|
||||
platforms = ocaml.meta.platforms;
|
||||
license = stdenv.lib.licenses.isc;
|
||||
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
||||
};
|
||||
}
|
|
@ -4163,6 +4163,8 @@ let
|
|||
|
||||
macaque = callPackage ../development/ocaml-modules/macaque { };
|
||||
|
||||
magic-mime = callPackage ../development/ocaml-modules/magic-mime { };
|
||||
|
||||
magick = callPackage ../development/ocaml-modules/magick { };
|
||||
|
||||
menhir = callPackage ../development/ocaml-modules/menhir { };
|
||||
|
|
Loading…
Reference in a new issue