summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ipaddr/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ocaml-modules/ipaddr/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/ipaddr/default.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ipaddr/default.nix b/pkgs/development/ocaml-modules/ipaddr/default.nix
new file mode 100644
index 00000000000..3090066c2f4
--- /dev/null
+++ b/pkgs/development/ocaml-modules/ipaddr/default.nix
@@ -0,0 +1,20 @@
+{ lib, buildDunePackage
+, macaddr, domain-name, stdlib-shims
+, ounit, ppx_sexp_conv
+}:
+
+buildDunePackage rec {
+  pname = "ipaddr";
+
+  inherit (macaddr) version src useDune2 minimumOCamlVersion;
+
+  propagatedBuildInputs = [ macaddr domain-name stdlib-shims ];
+
+  checkInputs = [ ppx_sexp_conv ounit ];
+  doCheck = true;
+
+  meta = macaddr.meta // {
+    description = "A library for manipulation of IP (and MAC) address representations ";
+    maintainers = with lib.maintainers; [ alexfmpe ericbmerritt ];
+  };
+}