2018-07-23 19:16:34 +02:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, which, ulex, easy-format, ocaml_optcomp, xmlm, base64 }:
|
2015-06-10 22:35:22 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-06-07 19:36:34 +02:00
|
|
|
version = "0.6.13";
|
2015-06-10 22:35:22 +02:00
|
|
|
name = "piqi-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/alavrik/piqi/archive/v${version}.tar.gz";
|
2016-06-07 19:36:34 +02:00
|
|
|
sha256 = "1whqr2bb3gds2zmrzqnv8vqka9928w4lx6mi6g244kmbwb2h8d8l";
|
2015-06-10 22:35:22 +02:00
|
|
|
};
|
|
|
|
|
2018-07-23 19:16:34 +02:00
|
|
|
buildInputs = [ ocaml findlib which ocaml_optcomp ];
|
2017-01-25 08:06:38 +01:00
|
|
|
propagatedBuildInputs = [ulex xmlm easy-format base64];
|
2015-06-10 22:35:22 +02:00
|
|
|
|
2018-07-23 19:16:34 +02:00
|
|
|
patches = [ ./no-ocamlpath-override.patch ./safe-string.patch ];
|
2015-06-10 22:35:22 +02:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2017-01-25 08:06:38 +01:00
|
|
|
buildPhase = ''
|
|
|
|
make
|
|
|
|
make -C piqilib piqilib.cma
|
|
|
|
'';
|
|
|
|
|
2015-06-10 22:35:22 +02:00
|
|
|
installPhase = ''
|
|
|
|
make install;
|
|
|
|
make ocaml-install;
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://piqi.org;
|
2016-02-27 18:24:00 +01:00
|
|
|
description = "Universal schema language and a collection of tools built around it";
|
2015-06-10 22:35:22 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.maurer ];
|
|
|
|
};
|
|
|
|
}
|