git.iko.soy/typeable/nixpkgs
on master help sign in
Adds ocaml-magic-mime
e64cd5fVincent Laporte
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
4163
4163
4164 macaque = callPackage ../development/ocaml-modules/macaque { };
4164 macaque = callPackage ../development/ocaml-modules/macaque { };
4165
4165
4166+ magic-mime = callPackage ../development/ocaml-modules/magic-mime { };
4167+
4166 magick = callPackage ../development/ocaml-modules/magick { };
4168 magick = callPackage ../development/ocaml-modules/magick { };
4167
4169
4168 menhir = callPackage ../development/ocaml-modules/menhir { };
4170 menhir = callPackage ../development/ocaml-modules/menhir { };