2021-01-17 12:44:21 +01:00
|
|
|
{ lib, buildDunePackage, fetchurl
|
2021-01-31 15:19:25 +01:00
|
|
|
, cstruct, ppx_cstruct, lwt, ounit, stdlib-shims
|
2021-01-17 12:44:21 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "xenstore";
|
|
|
|
version = "2.1.1";
|
|
|
|
|
|
|
|
minimumOCamlVersion = "4.04";
|
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/ocaml-xenstore/releases/download/${version}/xenstore-${version}.tbz";
|
|
|
|
sha256 = "283814ea21adc345c4d59cfcb17b2f7c1185004ecaecc3871557c961874c84f5";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ ppx_cstruct ];
|
2021-01-31 15:19:25 +01:00
|
|
|
propagatedBuildInputs = [ stdlib-shims cstruct lwt ];
|
2021-01-17 12:44:21 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkInputs = [ ounit ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Xenstore protocol in pure OCaml";
|
|
|
|
license = licenses.lgpl21Only;
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
|
|
homepage = "https://github.com/mirage/ocaml-xenstore";
|
|
|
|
};
|
|
|
|
}
|