2021-07-24 12:14:16 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitLab
|
|
|
|
, pkg-config
|
|
|
|
, buildDunePackage
|
|
|
|
, lmdb
|
|
|
|
, rresult
|
|
|
|
, cstruct
|
|
|
|
, alcotest
|
|
|
|
}:
|
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
let
|
2021-07-24 12:14:16 +00:00
|
|
|
version = "7.4";
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "tezos";
|
|
|
|
repo = "tezos";
|
|
|
|
rev = "v${version}";
|
2021-10-14 00:43:12 +00:00
|
|
|
sha256 = "0sghc60xzr02pmmkr626pnhzrnczf7mki7qyxzzfn7rbbdbrf4wp";
|
2021-07-24 12:14:16 +00:00
|
|
|
};
|
2021-10-14 00:43:12 +00:00
|
|
|
in
|
2021-07-24 12:14:16 +00:00
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
buildDunePackage {
|
|
|
|
pname = "tezos-lmdb";
|
|
|
|
version = version;
|
|
|
|
src = "${src}/vendors/ocaml-lmdb";
|
2021-07-24 12:14:16 +00:00
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
useDune2 = true;
|
2021-07-24 12:14:16 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
nativeBuildInputs = [
|
2021-07-24 12:14:16 +00:00
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
rresult
|
|
|
|
lmdb
|
|
|
|
];
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|