about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/magic-mime/default.nix
blob: 2a5ff08c018e2ba49f71642ead5d45753ffdb9d5 (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
26
27
{ stdenv, lib, 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";
  };

  nativeBuildInputs = [ ocaml findlib ocamlbuild ];
  buildInputs = [ findlib ];
  configurePlatforms = [];

  createFindlibDestdir = true;

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