1 { lib, stdenv, fetchFromGitHub, fetchpatch, ocaml, findlib, piqi, stdlib-shims, num }:
3 stdenv.mkDerivation rec {
6 name = "ocaml${ocaml.version}-${pname}-${version}";
8 src = fetchFromGitHub {
12 sha256 = "sha256-6Luq49sbo+AqLSq57mc6fLhrRx0K6G5LCUIzkGPfqYo=";
15 nativeBuildInputs = [ ocaml findlib ];
16 buildInputs = [ piqi stdlib-shims ];
18 checkInputs = [ num ];
22 createFindlibDestdir = true;
26 DESTDIR=$out make install
31 description = "Universal schema language and a collection of tools built around it. These are the ocaml bindings";
32 homepage = "https://piqi.org";
33 license = licenses.asl20;
34 maintainers = [ maintainers.maurer ];
35 mainProgram = "piqic-ocaml";