ocamlPackages.mirage-clock-freestanding: init at 3.1.0

This commit is contained in:
sternenseemann 2021-03-29 23:16:37 +02:00 committed by sterni
parent 0698166a6f
commit 83820fe6db
3 changed files with 27 additions and 0 deletions

View File

@ -6,6 +6,8 @@ buildDunePackage rec {
useDune2 = true;
minimumOCamlVersion = "4.06";
src = fetchurl {
url = "https://github.com/mirage/mirage-clock/releases/download/v${version}/mirage-clock-v${version}.tbz";
sha256 = "0cqa07aqkamw0dvis1fl46brvk81zvb92iy5076ik62gv9n5a0mn";

View File

@ -0,0 +1,23 @@
{ lib
, buildDunePackage
, mirage-clock
}:
buildDunePackage {
pname = "mirage-clock-freestanding";
inherit (mirage-clock)
version
src
useDune2
minimumOCamlVersion
;
propagatedBuildInputs = [
mirage-clock
];
meta = mirage-clock.meta // {
description = "Paravirtual implementation of the MirageOS Clock interface";
};
}

View File

@ -681,6 +681,8 @@ let
mirage-clock = callPackage ../development/ocaml-modules/mirage-clock { };
mirage-clock-freestanding = callPackage ../development/ocaml-modules/mirage-clock/freestanding.nix { };
mirage-clock-unix = callPackage ../development/ocaml-modules/mirage-clock/unix.nix { };
mirage-console = callPackage ../development/ocaml-modules/mirage-console { };