nixpkgs/pkgs/development/ocaml-modules/markup/default.nix
2017-01-13 06:38:08 +00:00

32 lines
842 B
Nix

{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, uutf, lwt }:
stdenv.mkDerivation rec {
pname = "markup";
version = "0.7.3";
name = "ocaml${ocaml.version}-${pname}-${version}";
src = fetchzip {
url = "http://github.com/aantron/markup.ml/archive/${version}.tar.gz";
sha256 = "03vyv609a60azw8qs7v0kkmy4704hkzw7c3skpzax5krwgwcqfxj";
};
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
];
};
}