2020-06-12 07:45:22 +00:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, which, sedlex_2, easy-format, xmlm, base64 }:
|
2015-06-10 20:35:22 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-06-12 07:45:22 +00:00
|
|
|
version = "0.6.15";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "piqi";
|
2020-06-12 07:45:22 +00:00
|
|
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
2015-06-10 20:35:22 +00:00
|
|
|
|
2020-06-12 07:45:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alavrik";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0v04hs85xv6d4ysqxyv1dik34dx49yab9shpi4x7iv19qlzl7csb";
|
2015-06-10 20:35:22 +00:00
|
|
|
};
|
|
|
|
|
2020-06-12 07:45:22 +00:00
|
|
|
buildInputs = [ ocaml findlib which ];
|
|
|
|
propagatedBuildInputs = [ sedlex_2 xmlm easy-format base64 ];
|
2015-06-10 20:35:22 +00:00
|
|
|
|
2018-10-01 21:59:56 +00:00
|
|
|
patches = [ ./no-ocamlpath-override.patch ];
|
2015-06-10 20:35:22 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2017-01-25 07:06:38 +00:00
|
|
|
buildPhase = ''
|
|
|
|
make
|
|
|
|
make -C piqilib piqilib.cma
|
|
|
|
'';
|
|
|
|
|
2015-06-10 20:35:22 +00:00
|
|
|
installPhase = ''
|
|
|
|
make install;
|
|
|
|
make ocaml-install;
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://piqi.org";
|
2016-02-27 17:24:00 +00:00
|
|
|
description = "Universal schema language and a collection of tools built around it";
|
2015-06-10 20:35:22 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.maurer ];
|
|
|
|
};
|
|
|
|
}
|