summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/magic-mime/default.nix
blob: d77c3f681158184c06747ccfbc8e0095a2a444f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 ];
  };
}