blob: cdcde0f4f9242ad36d5f8fe0c7c75aaffcea98e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
stdenv,
fetchFromGitHub,
ocaml,
findlib,
piqi,
stdlib-shims,
num,
}:
stdenv.mkDerivation rec {
version = "0.7.8";
pname = "piqi-ocaml";
name = "ocaml${ocaml.version}-${pname}-${version}";
src = fetchFromGitHub {
owner = "alavrik";
repo = pname;
rev = "v${version}";
sha256 = "sha256-6Luq49sbo+AqLSq57mc6fLhrRx0K6G5LCUIzkGPfqYo=";
};
nativeBuildInputs = [
ocaml
findlib
];
buildInputs = [
piqi
stdlib-shims
];
checkInputs = [ num ];
strictDeps = true;
createFindlibDestdir = true;
installPhase = ''
runHook preInstall
DESTDIR=$out make install
runHook postInstall
'';
meta = {
description = "Universal schema language and a collection of tools built around it. These are the ocaml bindings";
homepage = "https://piqi.org";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.maurer ];
mainProgram = "piqic-ocaml";
};
}
|