2022-03-30 09:31:56 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, ocaml, findlib, piqi, stdlib-shims, num }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "0.7.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "piqi-ocaml";
|
2020-09-25 04:45:31 +00:00
|
|
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alavrik";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1913jpsb8mvqi8609j4g4sm5jhg50dq0xqxgy8nmvknfryyc89nm";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib ];
|
|
|
|
buildInputs = [ piqi stdlib-shims ];
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
checkInputs = [ num ];
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
strictDeps = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
DESTDIR=$out make install
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Universal schema language and a collection of tools built around it. These are the ocaml bindings";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://piqi.org";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.maurer ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "piqic-ocaml";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|