2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildDunePackage, fetchurl
|
2022-12-28 21:21:41 +00:00
|
|
|
, cstruct, ppx_cstruct, lwt, ounit2
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "xenstore";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "2.2.0";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2023-03-30 22:05:00 +00:00
|
|
|
duneVersion = "3";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-12-28 21:21:41 +00:00
|
|
|
url = "https://github.com/mirage/ocaml-xenstore/releases/download/v${version}/xenstore-${version}.tbz";
|
|
|
|
hash = "sha256-1Mnqtt5zHeRdYJHvhdQNjN8d4yxUEKD2cpwtoc7DGC0=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
buildInputs = [ ppx_cstruct ];
|
2022-12-28 21:21:41 +00:00
|
|
|
propagatedBuildInputs = [ cstruct lwt ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ ounit2 ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Xenstore protocol in pure OCaml";
|
|
|
|
license = licenses.lgpl21Only;
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
|
|
homepage = "https://github.com/mirage/ocaml-xenstore";
|
|
|
|
};
|
|
|
|
}
|