@@ -0,0 +1,24 @@
1+{stdenv, fetchurl, ocaml, findlib, piqi, ulex, easy-format, xmlm, base64, camlp4}:
2+
3+stdenv.mkDerivation rec {
4+ version = "0.7.4";
5+ name = "piqi-ocaml-${version}";
6+
7+ src = fetchurl {
8+ url = "https://github.com/alavrik/piqi-ocaml/archive/v${version}.tar.gz";
9+ sha256 = "064c74f031l847q6s1vilj77n7h7i84jn8c83yid9nha3dssaf7m";
10+ };
11+
12+ buildInputs = [ocaml findlib piqi base64 camlp4];
13+
14+ createFindlibDestdir = true;
15+
16+ installPhase = "DESTDIR=$out make install";
17+
18+ meta = with stdenv.lib; {
19+ homepage = http://piqi.org;
20+ description = "Universal schema language and a collection of tools built around it. These are the ocaml bindings.";
21+ license = licenses.asl20;
22+ maintainers = [ maintainers.maurer ];
23+ };
24+}