summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/piqi/default.nix
blob: 7cca68c4f795d6353e4b3d8b1f39c7bf0ef4b82e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{stdenv, fetchurl, ocaml, findlib, camlp4, which, ulex, easy-format, ocaml_optcomp, xmlm, base64}:

stdenv.mkDerivation rec {
  version = "0.6.12";
  name    = "piqi-${version}";
 
  src = fetchurl {
    url = "https://github.com/alavrik/piqi/archive/v${version}.tar.gz";
    sha256 = "1ifnawnblvibf5rgp6gr4f20266dckfrlryikg1iiq3dx2wfl7f8";
  };

  buildInputs = [ocaml findlib camlp4 which ocaml_optcomp base64];
  propagatedBuildInputs = [ulex xmlm easy-format];

  patches = [ ./no-ocamlpath-override.patch ];

  createFindlibDestdir = true;

  installPhase = ''
    make install;
    make ocaml-install;
  '';

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