summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/markup/default.nix
blob: 3ee84d0d1b1cdab19e3316f55b0915bb648699b5 (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
28
29
30
31
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, uutf, lwt }:

stdenv.mkDerivation rec {
  pname = "markup";
  version = "0.7.4";
  name = "ocaml${ocaml.version}-${pname}-${version}";

  src = fetchzip {
    url = "http://github.com/aantron/markup.ml/archive/${version}.tar.gz";
    sha256 = "1hchlqzsy9pax91gcdmxzakfm22fbvhxzwyzpvz8fqkx4372zs37";
    };

  buildInputs = [ ocaml findlib ocamlbuild ];

  installPhase = "make ocamlfind-install";
  
  propagatedBuildInputs = [uutf lwt];

  createFindlibDestdir = true;

  meta = with stdenv.lib; {
    homepage = https://github.com/aantron/markup.ml/;
    description = "A pair of best-effort parsers implementing the HTML5 and XML specifications";
    license = licenses.bsd2;
    platforms = ocaml.meta.platforms or [];
    maintainers = with maintainers; [
      gal_bolle
      ];
  };

}