diff --git a/pkgs/development/ocaml-modules/mirage-clock/default.nix b/pkgs/development/ocaml-modules/mirage-clock/default.nix new file mode 100644 index 000000000000..c5f0b1fc93c1 --- /dev/null +++ b/pkgs/development/ocaml-modules/mirage-clock/default.nix @@ -0,0 +1,20 @@ +{ lib, buildDunePackage, fetchurl }: + +buildDunePackage rec { + pname = "mirage-clock"; + version = "3.0.1"; + + src = fetchurl { + url = "https://github.com/mirage/mirage-clock/releases/download/v${version}/mirage-clock-v${version}.tbz"; + sha256 = "12m2dph69r843clrbcgfjj2gcxmq2kdb7g5d91kfj16g13b0vsa3"; + }; + + meta = { + description = "Libraries and module types for portable clocks"; + homepage = "https://github.com/mirage/mirage-clock"; + 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 e513b8619e48..8669b2c7f20c 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -534,6 +534,8 @@ let minisat = callPackage ../development/ocaml-modules/minisat { }; + mirage-clock = callPackage ../development/ocaml-modules/mirage-clock { }; + mlgmp = callPackage ../development/ocaml-modules/mlgmp { }; mlgmpidl = callPackage ../development/ocaml-modules/mlgmpidl { };