From 10a73b84d3a537b36f06a7accfef533ed73c29d8 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Wed, 8 Apr 2020 08:26:37 +0200 Subject: [PATCH] ocamlPackages.mirage-device: init at 2.0.0 --- .../ocaml-modules/mirage-device/default.nix | 22 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/development/ocaml-modules/mirage-device/default.nix diff --git a/pkgs/development/ocaml-modules/mirage-device/default.nix b/pkgs/development/ocaml-modules/mirage-device/default.nix new file mode 100644 index 000000000000..d86d133dedb6 --- /dev/null +++ b/pkgs/development/ocaml-modules/mirage-device/default.nix @@ -0,0 +1,22 @@ +{ lib, buildDunePackage, fetchurl, fmt, ocaml_lwt }: + +buildDunePackage rec { + pname = "mirage-device"; + version = "2.0.0"; + + src = fetchurl { + url = "https://github.com/mirage/mirage-device/releases/download/v${version}/mirage-device-v${version}.tbz"; + sha256 = "18alxyi6wlxqvb4lajjlbdfkgcajsmklxi9xqmpcz07j51knqa04"; + }; + + propagatedBuildInputs = [ fmt ocaml_lwt ]; + + meta = { + description = "Abstract devices for MirageOS"; + homepage = "https://github.com/mirage/mirage-device"; + 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 8669b2c7f20c..377a8965aa43 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -536,6 +536,8 @@ let mirage-clock = callPackage ../development/ocaml-modules/mirage-clock { }; + mirage-device = callPackage ../development/ocaml-modules/mirage-device { }; + mlgmp = callPackage ../development/ocaml-modules/mlgmp { }; mlgmpidl = callPackage ../development/ocaml-modules/mlgmpidl { };