nixpkgs/pkgs/development/ocaml-modules/magic-mime/default.nix
Vincent Laporte e64cd5feec 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
2015-04-28 00:58:51 +02:00

24 lines
644 B
Nix

{ 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 ];
};
}