depot/third_party/nixpkgs/pkgs/development/ocaml-modules/xenstore/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

28 lines
728 B
Nix

{ lib, buildDunePackage, fetchurl
, cstruct, ppx_cstruct, lwt, ounit2
}:
buildDunePackage rec {
pname = "xenstore";
version = "2.2.0";
minimalOCamlVersion = "4.08";
src = fetchurl {
url = "https://github.com/mirage/ocaml-xenstore/releases/download/v${version}/xenstore-${version}.tbz";
hash = "sha256-1Mnqtt5zHeRdYJHvhdQNjN8d4yxUEKD2cpwtoc7DGC0=";
};
nativeBuildInputs = [ ppx_cstruct ];
propagatedBuildInputs = [ cstruct lwt ];
doCheck = true;
checkInputs = [ ounit2 ];
meta = with lib; {
description = "Xenstore protocol in pure OCaml";
license = licenses.lgpl21Only;
maintainers = [ maintainers.sternenseemann ];
homepage = "https://github.com/mirage/ocaml-xenstore";
};
}