summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/mirage-net
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2020-10-24 15:34:55 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2020-10-25 16:02:34 +0100
commitb5f396e43ac1279324f1678aaf32f93cc18e07a9 (patch)
tree10a3d6f9d4bec846ea06286c31722feb6a66d1d0 /pkgs/development/ocaml-modules/mirage-net
parentf20b89d1d412d7aac217ab81d20a81ceca3264e2 (diff)
downloadnixpkgs-b5f396e43ac1279324f1678aaf32f93cc18e07a9.tar
nixpkgs-b5f396e43ac1279324f1678aaf32f93cc18e07a9.tar.gz
nixpkgs-b5f396e43ac1279324f1678aaf32f93cc18e07a9.tar.bz2
nixpkgs-b5f396e43ac1279324f1678aaf32f93cc18e07a9.tar.lz
nixpkgs-b5f396e43ac1279324f1678aaf32f93cc18e07a9.tar.xz
nixpkgs-b5f396e43ac1279324f1678aaf32f93cc18e07a9.tar.zst
nixpkgs-b5f396e43ac1279324f1678aaf32f93cc18e07a9.zip
ocamlPackages.mirage-net: init at 3.0.1
Diffstat (limited to 'pkgs/development/ocaml-modules/mirage-net')
-rw-r--r--pkgs/development/ocaml-modules/mirage-net/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/mirage-net/default.nix b/pkgs/development/ocaml-modules/mirage-net/default.nix
new file mode 100644
index 00000000000..a29727d7ee1
--- /dev/null
+++ b/pkgs/development/ocaml-modules/mirage-net/default.nix
@@ -0,0 +1,24 @@
+{ lib, fetchurl, buildDunePackage
+, cstruct, fmt, lwt, macaddr, mirage-device
+}:
+
+buildDunePackage rec {
+  pname = "mirage-net";
+  version = "3.0.1";
+
+  useDune2 = true;
+
+  src = fetchurl {
+    url = "https://github.com/mirage/mirage-net/releases/download/v${version}/mirage-net-v${version}.tbz";
+    sha256 = "0yfvl0fgs7xy5i7kkparaa7a315a2h7kb1z24fmmnwnyaji57dg3";
+  };
+
+  propagatedBuildInputs = [ cstruct fmt lwt macaddr mirage-device ];
+
+  meta = {
+    description = "Network signatures for MirageOS";
+    homepage = "https://github.com/mirage/mirage-net";
+    license = lib.licenses.isc;
+    maintainers = [ lib.maintainers.vbgl ];
+  };
+}