Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

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

+26
+24
pkgs/development/ocaml-modules/magic-mime/default.nix
··· 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 + }
+2
pkgs/top-level/all-packages.nix
··· 4163 4163 4164 4164 macaque = callPackage ../development/ocaml-modules/macaque { }; 4165 4165 4166 + magic-mime = callPackage ../development/ocaml-modules/magic-mime { }; 4167 + 4166 4168 magick = callPackage ../development/ocaml-modules/magick { }; 4167 4169 4168 4170 menhir = callPackage ../development/ocaml-modules/menhir { };