Skip to content

Commit 21c2509

Browse files
committed
ocamlPackages.mirage-ptime: init at 5.0.0
1 parent 3349acd commit 21c2509

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
lib,
3+
buildDunePackage,
4+
fetchurl,
5+
ptime,
6+
version ? "5.0.0",
7+
}:
8+
9+
buildDunePackage {
10+
inherit version;
11+
12+
pname = "mirage-ptime";
13+
14+
src = fetchurl {
15+
url = "https://github.com/mirage/mirage-ptime/releases/download/v${version}/mirage-ptime-${version}.tbz";
16+
hash = "sha256-1VNWBGjVuU2yWwVzjCSZ8pDuZrFKwitDAuZn8fpENHE=";
17+
};
18+
19+
propagatedBuildInputs = [ ptime ];
20+
21+
meta = {
22+
description = "A POSIX clock for MirageOS";
23+
license = lib.licenses.isc;
24+
maintainers = [ lib.maintainers.vbgl ];
25+
changelog = "https://raw.githubusercontent.com/mirage/mirage-ptime/refs/tags/v${version}/CHANGES.md";
26+
homepage = "https://github.com/mirage/mirage-ptime";
27+
};
28+
}

pkgs/top-level/ocaml-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,6 +1216,8 @@ let
12161216

12171217
mirage-protocols = callPackage ../development/ocaml-modules/mirage-protocols { };
12181218

1219+
mirage-ptime = callPackage ../development/ocaml-modules/mirage-ptime { };
1220+
12191221
mirage-random = callPackage ../development/ocaml-modules/mirage-random { };
12201222

12211223
mirage-random-test = callPackage ../development/ocaml-modules/mirage-random-test { };

0 commit comments

Comments
 (0)