at 18.09-beta 30 lines 871 B view raw
1{ stdenv, fetchFromGitHub, ocaml, findlib 2, ocamlbuild, topkg 3, uri, xmlm, omd, ezjsonm }: 4 5stdenv.mkDerivation rec { 6 version = "2.2.0"; 7 name = "ocaml-cow-${version}"; 8 9 src = fetchFromGitHub { 10 owner = "mirage"; 11 repo = "ocaml-cow"; 12 rev = "v${version}"; 13 sha256 = "0snhabg7rfrrcq2ksr3qghiawd61cw3y4kp6rl7vs87j4cnk3kr2"; 14 }; 15 16 buildInputs = [ ocaml ocamlbuild findlib topkg ]; 17 propagatedBuildInputs = [ xmlm uri ezjsonm omd ]; 18 19 inherit (topkg) buildPhase installPhase; 20 21 meta = with stdenv.lib; { 22 description = "Caml on the Web"; 23 longDescription = '' 24 Caml on the Web (COW) is a set of parsers and syntax extensions to let you manipulate HTML, CSS, XML, JSON and Markdown directly from OCaml code. 25 ''; 26 license = licenses.isc; 27 maintainers = [ maintainers.sternenseemann ]; 28 inherit (ocaml.meta) platforms; 29 }; 30}