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:43:49 +0100
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2020-12-29 23:50:37 +0100
commitba66c5b87dd4bae9f717f5d23f66fc325d323e8f (patch)
treea3733983e55d166ffab31c7376c975397814485f /pkgs/development/ocaml-modules
parent2446dfa5fc573db9fc6f66f801e2c0ce19fa5173 (diff)
downloadnixlib-ba66c5b87dd4bae9f717f5d23f66fc325d323e8f.tar
nixlib-ba66c5b87dd4bae9f717f5d23f66fc325d323e8f.tar.gz
nixlib-ba66c5b87dd4bae9f717f5d23f66fc325d323e8f.tar.bz2
nixlib-ba66c5b87dd4bae9f717f5d23f66fc325d323e8f.tar.lz
nixlib-ba66c5b87dd4bae9f717f5d23f66fc325d323e8f.tar.xz
nixlib-ba66c5b87dd4bae9f717f5d23f66fc325d323e8f.tar.zst
nixlib-ba66c5b87dd4bae9f717f5d23f66fc325d323e8f.zip
ocamlPackages.mirage-vnetif: init at 0.5.0
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/mirage-vnetif/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/mirage-vnetif/default.nix b/pkgs/development/ocaml-modules/mirage-vnetif/default.nix
new file mode 100644
index 000000000000..cafb50309ce6
--- /dev/null
+++ b/pkgs/development/ocaml-modules/mirage-vnetif/default.nix
@@ -0,0 +1,40 @@
+{ lib, buildDunePackage, fetchurl
+, lwt, mirage-time, mirage-clock, mirage-net
+, cstruct, ipaddr, macaddr, mirage-profile
+, duration, logs
+}:
+
+buildDunePackage rec {
+  pname = "mirage-vnetif";
+  version = "0.5.0";
+
+  minimumOCamlVersion = "4.06";
+
+  # due to cstruct
+  useDune2 = true;
+
+  src = fetchurl {
+    url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-v${version}.tbz";
+    sha256 = "0cpqwf51v2cpz41dfqxabf3bsabwyl6a0h0v2ncrn33q58i60m5q";
+  };
+
+  propagatedBuildInputs = [
+    lwt
+    mirage-net
+    mirage-time
+    mirage-clock
+    cstruct
+    ipaddr
+    macaddr
+    mirage-profile
+    duration
+    logs
+  ];
+
+  meta = with lib; {
+    description = "Virtual network interface and software switch for Mirage";
+    homepage = "https://github.com/mirage/${pname}";
+    license = licenses.isc;
+    mantainers = [ maintainers.sternenseemann ];
+  };
+}