2021-01-10 23:54:33 -08:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, ocaml, findlib, piqi, stdlib-shims }:
|
2015-06-10 14:00:52 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-08-28 21:35:16 -07:00
|
|
|
version = "0.7.7";
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "piqi-ocaml";
|
2020-08-28 21:35:16 -07:00
|
|
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
2015-06-10 14:00:52 -07:00
|
|
|
|
2020-08-28 21:35:16 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alavrik";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1913jpsb8mvqi8609j4g4sm5jhg50dq0xqxgy8nmvknfryyc89nm";
|
2015-06-10 14:00:52 -07:00
|
|
|
};
|
|
|
|
|
2020-08-28 21:35:16 -07:00
|
|
|
buildInputs = [ ocaml findlib piqi stdlib-shims ];
|
2015-06-10 14:00:52 -07:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
installPhase = "DESTDIR=$out make install";
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://piqi.org";
|
2016-02-27 09:24:00 -08:00
|
|
|
description = "Universal schema language and a collection of tools built around it. These are the ocaml bindings";
|
2015-06-10 14:00:52 -07:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.maurer ];
|
|
|
|
};
|
|
|
|
}
|