forked from mirrors/nixpkgs
2db064d028
ocamlPackages.lwt-canceler: 0.2 -> 0.3 ocamlPackages.json-data-encoding: 0.8 -> 0.10 ocamlPackages.data-encoding: 0.2.0 -> 0.4.0 ocamlPackages.ff-sig, ff-pbt: init at 0.6.1 ocamlPacakges.bls12-381: 0.3.15 -> 0.4.2 Co-authored-by: Vincent Laporte <vbgl@users.noreply.github.com>
50 lines
762 B
Nix
50 lines
762 B
Nix
{ 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;
|
|
|
|
buildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
rresult
|
|
lmdb
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|