2022-06-16 17:23:12 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ocaml, findlib, which, sedlex, easy-format, xmlm, base64 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "0.6.16";
|
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}";
|
2022-11-21 17:40:18 +00:00
|
|
|
sha256 = "sha256-qE+yybTn+kzbY0h8udhZYO+GwQPI/J/6p3LMmF12cFU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib which ];
|
2022-06-16 17:23:12 +00:00
|
|
|
propagatedBuildInputs = [ sedlex xmlm easy-format base64 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
patches = [ ./no-stream.patch ./no-ocamlpath-override.patch ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|