From 8b5088130ea9d09d3350d001161b5884193bef81 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 3 Nov 2020 08:26:34 +0100 Subject: [PATCH] ocamlPackages.mirage-console: init at 3.0.2 --- .../ocaml-modules/mirage-console/default.nix | 24 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/ocaml-modules/mirage-console/default.nix diff --git a/pkgs/development/ocaml-modules/mirage-console/default.nix b/pkgs/development/ocaml-modules/mirage-console/default.nix new file mode 100644 index 000000000000..ccde5c5f2ae2 --- /dev/null +++ b/pkgs/development/ocaml-modules/mirage-console/default.nix @@ -0,0 +1,24 @@ +{ lib, fetchurl, buildDunePackage +, lwt, mirage-device, mirage-flow +}: + +buildDunePackage rec { + pname = "mirage-console"; + version = "3.0.2"; + + useDune2 = true; + + src = fetchurl { + url = "https://github.com/mirage/mirage-console/releases/download/v${version}/mirage-console-v${version}.tbz"; + sha256 = "1fygk7pvlmwx6vd0h4cv9935xxhi64k2dgym41wf6qfkxgpp31lm"; + }; + + propagatedBuildInputs = [ lwt mirage-device mirage-flow ]; + + meta = { + description = "Implementations of Mirage console devices"; + homepage = "https://github.com/mirage/mirage-console"; + license = lib.licenses.isc; + maintainers = [ lib.maintainers.vbgl ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index ee362e03a940..16ed885d52d3 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -549,6 +549,8 @@ let mirage-clock-unix = callPackage ../development/ocaml-modules/mirage-clock/unix.nix { }; + mirage-console = callPackage ../development/ocaml-modules/mirage-console { }; + mirage-crypto = callPackage ../development/ocaml-modules/mirage-crypto { }; mirage-crypto-pk = callPackage ../development/ocaml-modules/mirage-crypto/pk.nix { };