summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/tezos/lmdb.nix
blob: 5b5690707ab3fc49fb76e7f815d42c9dfa0d41dd (plain) (blame)
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
{ lib
, fetchFromGitLab
, pkg-config
, buildDunePackage
, lmdb
, rresult
, cstruct
, alcotest
}:

let
  version = "7.4";
  src = fetchFromGitLab {
    owner = "tezos";
    repo = "tezos";
    rev = "v${version}";
    sha256 = "0sghc60xzr02pmmkr626pnhzrnczf7mki7qyxzzfn7rbbdbrf4wp";
  };
in

buildDunePackage {
  pname = "tezos-lmdb";
  version = version;
  src = "${src}/vendors/ocaml-lmdb";

  useDune2 = true;

  nativeBuildInputs = [
    pkg-config
  ];

  propagatedBuildInputs = [
    rresult
    lmdb
  ];

  strictDeps = true;

  checkInputs = [
    cstruct
    alcotest
  ];

  doCheck = false;

  meta = {
    description = "Legacy Tezos OCaml binding to LMDB (Consider ocaml-lmdb instead)";
    license = lib.licenses.isc;
    maintainers = [ lib.maintainers.ulrikstrid ];
  };
}