summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/mirage-unix
diff options
context:
space:
mode:
authorsternenseemann <git@lukasepple.de>2020-05-21 00:56:00 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2020-05-21 21:11:21 +0200
commit0684381e27169d7a5be6ae4a2d362babd0509dd3 (patch)
tree157eeaad9b47072ebad3da989f18fe2596551bf5 /pkgs/development/ocaml-modules/mirage-unix
parent3ca20e824f59f75c6af58906177e380014652ed9 (diff)
downloadnixpkgs-0684381e27169d7a5be6ae4a2d362babd0509dd3.tar
nixpkgs-0684381e27169d7a5be6ae4a2d362babd0509dd3.tar.gz
nixpkgs-0684381e27169d7a5be6ae4a2d362babd0509dd3.tar.bz2
nixpkgs-0684381e27169d7a5be6ae4a2d362babd0509dd3.tar.lz
nixpkgs-0684381e27169d7a5be6ae4a2d362babd0509dd3.tar.xz
nixpkgs-0684381e27169d7a5be6ae4a2d362babd0509dd3.tar.zst
nixpkgs-0684381e27169d7a5be6ae4a2d362babd0509dd3.zip
ocamlPackages.mirage-unix: init at 4.0.0
Diffstat (limited to 'pkgs/development/ocaml-modules/mirage-unix')
-rw-r--r--pkgs/development/ocaml-modules/mirage-unix/default.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/mirage-unix/default.nix b/pkgs/development/ocaml-modules/mirage-unix/default.nix
new file mode 100644
index 00000000000..696181f7f60
--- /dev/null
+++ b/pkgs/development/ocaml-modules/mirage-unix/default.nix
@@ -0,0 +1,21 @@
+{ lib, buildDunePackage, fetchurl, ocaml_lwt, duration, mirage-runtime, io-page-unix }:
+
+buildDunePackage rec {
+  pname = "mirage-unix";
+  version = "4.0.0";
+
+  src = fetchurl {
+    url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-v${version}.tbz";
+    sha256 = "0kyd83bkpjhn382b4mw3a4325xr8vms78znxqvifpcyfvfnlx7hj";
+  };
+
+  propagatedBuildInputs = [ ocaml_lwt duration mirage-runtime io-page-unix ];
+  doCheck = true;
+
+  meta = with lib; {
+    homepage = "https://github.com/mirage/mirage-unix";
+    description = "Unix core platform libraries for MirageOS";
+    license = licenses.isc;
+    maintainers = with maintainers; [ sternenseemann ];
+  };
+}