2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, ocaml, findlib, piqi, stdlib-shims }:
|
2015-06-10 22:00:52 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-08-29 05:35:16 +01:00
|
|
|
version = "0.7.7";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "piqi-ocaml";
|
2020-08-29 05:35:16 +01:00
|
|
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
2015-06-10 22:00:52 +01:00
|
|
|
|
2020-08-29 05:35:16 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alavrik";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1913jpsb8mvqi8609j4g4sm5jhg50dq0xqxgy8nmvknfryyc89nm";
|
2015-06-10 22:00:52 +01:00
|
|
|
};
|
|
|
|
|
2020-08-29 05:35:16 +01:00
|
|
|
buildInputs = [ ocaml findlib piqi stdlib-shims ];
|
2015-06-10 22:00:52 +01:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
installPhase = "DESTDIR=$out make install";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01: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. These are the ocaml bindings";
|
2015-06-10 22:00:52 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.maurer ];
|
|
|
|
};
|
|
|
|
}
|