summary refs log blame commit diff
path: root/pkgs/development/ocaml-modules/piqi-ocaml/default.nix
blob: 488a13ecf1610df6a67cd6ac2ea7a5d98b510e45 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                                                  
                    



                                                                             
                                                                    









                                                   
                                                                                                                      



                                         
{stdenv, fetchurl, ocaml, findlib, piqi, ulex, easy-format, xmlm, base64, camlp4}:

stdenv.mkDerivation rec {
  version = "0.7.5";
  name    = "piqi-ocaml-${version}";

  src = fetchurl {
    url = "https://github.com/alavrik/piqi-ocaml/archive/v${version}.tar.gz";
    sha256 = "0ngz6y8i98i5v2ma8nk6mc83pdsmf2z0ks7m3xi6clfg3zqbddrv";
  };

  buildInputs = [ocaml findlib piqi base64 camlp4];

  createFindlibDestdir = true;

  installPhase = "DESTDIR=$out make install";

  meta = with stdenv.lib; {
    homepage = http://piqi.org;
    description = "Universal schema language and a collection of tools built around it. These are the ocaml bindings";
    license = licenses.asl20;
    maintainers = [ maintainers.maurer ];
  };
}