about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/magic-mime/default.nix
blob: 65acbd6cc42882b8eabad42a7e71ac63f90b0387 (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
25
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild }:

let version = "1.0.0"; in

stdenv.mkDerivation {
  pname = "ocaml-magic-mime";
  inherit version;

  src = fetchzip {
    url = "https://github.com/mirage/ocaml-magic-mime/archive/v${version}.tar.gz";
    sha256 = "058d83hmxd5mjccxdm3ydchmhk2lca5jdg82jg0klsigmf4ida6v";
  };

  buildInputs = [ ocaml findlib ocamlbuild ];

  createFindlibDestdir = true;

  meta = {
    homepage = https://github.com/mirage/ocaml-magic-mime;
    description = "Convert file extensions to MIME types";
    platforms = ocaml.meta.platforms or [];
    license = stdenv.lib.licenses.isc;
    maintainers = with stdenv.lib.maintainers; [ vbgl ];
  };
}