diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-01-17 12:44:21 +0100 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2021-01-24 17:38:11 +0100 |
commit | 148ca8c904ff703ab7a4a22c92cd6907692543b1 (patch) | |
tree | 5e026fd0fa2a4a863d6bf1e8e738a94e9144f085 /pkgs/development/ocaml-modules | |
parent | d91aad5c8f3a7456b56a8c7ba79b48f6e9031db5 (diff) | |
download | nixlib-148ca8c904ff703ab7a4a22c92cd6907692543b1.tar nixlib-148ca8c904ff703ab7a4a22c92cd6907692543b1.tar.gz nixlib-148ca8c904ff703ab7a4a22c92cd6907692543b1.tar.bz2 nixlib-148ca8c904ff703ab7a4a22c92cd6907692543b1.tar.lz nixlib-148ca8c904ff703ab7a4a22c92cd6907692543b1.tar.xz nixlib-148ca8c904ff703ab7a4a22c92cd6907692543b1.tar.zst nixlib-148ca8c904ff703ab7a4a22c92cd6907692543b1.zip |
ocamlPackages.xenstore: init at 2.1.1
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/xenstore/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/xenstore/default.nix b/pkgs/development/ocaml-modules/xenstore/default.nix new file mode 100644 index 000000000000..666106fdb17a --- /dev/null +++ b/pkgs/development/ocaml-modules/xenstore/default.nix @@ -0,0 +1,30 @@ +{ lib, buildDunePackage, fetchurl +, cstruct, ppx_cstruct, lwt, ounit +}: + +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 ]; + propagatedBuildInputs = [ cstruct lwt ]; + + 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"; + }; +} |