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
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib which ];
|
2020-06-15 15:56:04 +00:00
|
|
|
propagatedBuildInputs = [ sedlex_2 xmlm easy-format base64 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
patches = [ ./no-ocamlpath-override.patch ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
postBuild = "make -C piqilib piqilib.cma";
|
|
|
|
|
|
|
|
installTargets = [ "install" "ocaml-install" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|