2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ocaml, findlib, which, sedlex_2, easy-format, xmlm, base64 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "0.6.15";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "piqi";
|
2020-06-15 15:56:04 +00:00
|
|
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alavrik";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0v04hs85xv6d4ysqxyv1dik34dx49yab9shpi4x7iv19qlzl7csb";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
buildInputs = [ ocaml findlib which ];
|
|
|
|
propagatedBuildInputs = [ sedlex_2 xmlm easy-format base64 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
patches = [ ./no-ocamlpath-override.patch ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make
|
|
|
|
make -C piqilib piqilib.cma
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make install;
|
|
|
|
make ocaml-install;
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-01-03 16:56:52 +00:00
|
|
|
homepage = "https://piqi.org";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Universal schema language and a collection of tools built around it";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.maurer ];
|
|
|
|
};
|
|
|
|
}
|