git.iko.soy/typeable/nixpkgs
on master help sign in
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

commite64cd5feecd4f7bbfb895dfafb6496d506334f36 authorVincent Laporte <Vincent.Laporte@gmail.com> dateTue 28 Apr 2015, 00:57 (12 years ago) parent999241a
2 files changed+26
pkgs/development/ocaml-modules/magic-mime/default.nix+24 pkgs/top-level/all-packages.nix+2
pkgs/development/ocaml-modules/magic-mime/default.nixnew file+24
@@ -0,0 +1,24 @@
1+{ stdenv, fetchzip, ocaml, findlib }:
2+
3+let version = "1.0.0"; in
4+
5+stdenv.mkDerivation {
6+ name = "ocaml-magic-mime-${version}";
7+
8+ src = fetchzip {
9+ url = "https://github.com/mirage/ocaml-magic-mime/archive/v${version}.tar.gz";
10+ sha256 = "058d83hmxd5mjccxdm3ydchmhk2lca5jdg82jg0klsigmf4ida6v";
11+ };
12+
13+ buildInputs = [ ocaml findlib ];
14+
15+ createFindlibDestdir = true;
16+
17+ meta = {
18+ homepage = https://github.com/mirage/ocaml-magic-mime;
19+ description = "Convert file extensions to MIME types";
20+ platforms = ocaml.meta.platforms;
21+ license = stdenv.lib.licenses.isc;
22+ maintainers = with stdenv.lib.maintainers; [ vbgl ];
23+ };
24+}
pkgs/top-level/all-packages.nix+2
@@ -4163,6 +4163,8 @@ let
41634163
41644164 macaque = callPackage ../development/ocaml-modules/macaque { };
41654165
4166+ magic-mime = callPackage ../development/ocaml-modules/magic-mime { };
4167+
41664168 magick = callPackage ../development/ocaml-modules/magick { };
41674169
41684170 menhir = callPackage ../development/ocaml-modules/menhir { };