about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2020-12-29 23:44:46 +0100
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2020-12-29 23:50:38 +0100
commitfa3da94dd59efd49d1432a1790b145846761ad2c (patch)
treebe988ab59c58c3181475118aa1f300af1cbbcf22 /pkgs/development/ocaml-modules
parent9e3040ef413fae384d610c79ff58a85cf1596770 (diff)
downloadnixlib-fa3da94dd59efd49d1432a1790b145846761ad2c.tar
nixlib-fa3da94dd59efd49d1432a1790b145846761ad2c.tar.gz
nixlib-fa3da94dd59efd49d1432a1790b145846761ad2c.tar.bz2
nixlib-fa3da94dd59efd49d1432a1790b145846761ad2c.tar.lz
nixlib-fa3da94dd59efd49d1432a1790b145846761ad2c.tar.xz
nixlib-fa3da94dd59efd49d1432a1790b145846761ad2c.tar.zst
nixlib-fa3da94dd59efd49d1432a1790b145846761ad2c.zip
ocamlPackages.arp: init at 2.3.1
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/arp/default.nix57
1 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/arp/default.nix b/pkgs/development/ocaml-modules/arp/default.nix
new file mode 100644
index 000000000000..518f1c9f4245
--- /dev/null
+++ b/pkgs/development/ocaml-modules/arp/default.nix
@@ -0,0 +1,57 @@
+{ lib, buildDunePackage, fetchurl
+, cstruct, ipaddr, macaddr, logs, lwt, duration
+, mirage-time, mirage-protocols, mirage-profile
+, alcotest, ethernet, fmt, mirage-vnetif, mirage-random
+, mirage-random-test, mirage-clock-unix, mirage-time-unix
+, bisect_ppx
+}:
+
+buildDunePackage rec {
+  pname = "arp";
+  version = "2.3.1";
+
+  minimumOCamlVersion = "4.06";
+
+  useDune2 = true;
+
+  src = fetchurl {
+    url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-v${version}.tbz";
+    sha256 = "1nzm3fbkvz702g8f60fs49736lpffwchy64i1l1raxm9b4lmdk3p";
+  };
+
+  nativeBuildInputs = [
+    bisect_ppx
+  ];
+
+  propagatedBuildInputs = [
+    cstruct
+    ipaddr
+    macaddr
+    logs
+    mirage-time
+    mirage-protocols
+    lwt
+    duration
+    mirage-profile
+  ];
+
+  doCheck = true;
+  checkInputs = [
+    alcotest
+    mirage-profile
+    mirage-random
+    mirage-random-test
+    mirage-vnetif
+    mirage-clock-unix
+    mirage-random
+    mirage-time-unix
+    ethernet
+  ];
+
+  meta = with lib; {
+    description = "Address Resolution Protocol purely in OCaml";
+    license = licenses.isc;
+    homepage = "https://github.com/mirage/arp";
+    maintainers = [ maintainers.sternenseemann ];
+  };
+}