Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildDunePackage, fetchurl
2, cstruct, ppx_cstruct, lwt, ounit2
3}:
4
5buildDunePackage rec {
6 pname = "xenstore";
7 version = "2.2.0";
8
9 minimalOCamlVersion = "4.08";
10 duneVersion = "3";
11
12 src = fetchurl {
13 url = "https://github.com/mirage/ocaml-xenstore/releases/download/v${version}/xenstore-${version}.tbz";
14 hash = "sha256-1Mnqtt5zHeRdYJHvhdQNjN8d4yxUEKD2cpwtoc7DGC0=";
15 };
16
17 buildInputs = [ ppx_cstruct ];
18 propagatedBuildInputs = [ cstruct lwt ];
19
20 doCheck = true;
21 checkInputs = [ ounit2 ];
22
23 meta = with lib; {
24 description = "Xenstore protocol in pure OCaml";
25 license = licenses.lgpl21Only;
26 maintainers = [ maintainers.sternenseemann ];
27 homepage = "https://github.com/mirage/ocaml-xenstore";
28 };
29}