Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 25 lines 767 B view raw
1{ stdenv, fetchzip, ocaml, findlib, ocamlbuild }: 2 3stdenv.mkDerivation { 4 name = "ocaml${ocaml.version}-mparser-1.2.3"; 5 src = fetchzip { 6 url = http://github.com/cakeplus/mparser/archive/1.2.3.tar.gz; 7 sha256 = "1f8vpagmv0jdm50pxs2xwh2xcmvgaprx4kw871hlml9ahsflxgnw"; 8 }; 9 10 buildInputs = [ ocaml findlib ocamlbuild ]; 11 12 configurePhase = "ocaml setup.ml -configure"; 13 buildPhase = "ocaml setup.ml -build"; 14 installPhase = "ocaml setup.ml -install"; 15 16 createFindlibDestdir = true; 17 18 meta = { 19 description = "A simple monadic parser combinator OCaml library"; 20 license = stdenv.lib.licenses.lgpl21Plus; 21 homepage = https://github.com/cakeplus/mparser; 22 maintainers = [ stdenv.lib.maintainers.vbgl ]; 23 inherit (ocaml.meta) platforms; 24 }; 25}