2018-07-23 19:23:07 +02:00
|
|
|
{ stdenv, fetchurl, fetchpatch, ocaml, findlib, piqi, camlp4 }:
|
2015-06-10 23:00:52 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-06-07 19:37:38 +02:00
|
|
|
version = "0.7.5";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "piqi-ocaml";
|
2015-06-10 23:00:52 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/alavrik/piqi-ocaml/archive/v${version}.tar.gz";
|
2016-06-07 19:37:38 +02:00
|
|
|
sha256 = "0ngz6y8i98i5v2ma8nk6mc83pdsmf2z0ks7m3xi6clfg3zqbddrv";
|
2015-06-10 23:00:52 +02:00
|
|
|
};
|
|
|
|
|
2018-07-23 19:23:07 +02:00
|
|
|
patches = [ (fetchpatch {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "https://github.com/alavrik/piqi-ocaml/commit/336e8fdb84e77f4105e9bbb5ab545b8729101308.patch";
|
2018-07-23 19:23:07 +02:00
|
|
|
sha256 = "071s4xjyr6xx95v6az2lbl2igc87n7z5jqnnbhfq2pidrxakd0la";
|
|
|
|
})];
|
|
|
|
|
2017-01-25 08:06:38 +01:00
|
|
|
buildInputs = [ ocaml findlib piqi camlp4 ];
|
2015-06-10 23:00:52 +02:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
installPhase = "DESTDIR=$out make install";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://piqi.org";
|
2016-02-27 18:24:00 +01:00
|
|
|
description = "Universal schema language and a collection of tools built around it. These are the ocaml bindings";
|
2015-06-10 23:00:52 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.maurer ];
|
|
|
|
};
|
|
|
|
}
|