blob: e018c74a2c7bc37ca76f2e65bbaabeededc9e18d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{
stdenv,
lib,
fetchurl,
ocaml,
findlib,
ocamlbuild,
topkg,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ocaml${ocaml.version}-mtime";
version = "2.2.0";
src = fetchurl {
url = "https://erratique.ch/software/mtime/releases/mtime-${finalAttrs.version}.tbz";
hash = "sha256-+SEKB8Sj6xdWpF+ooyl02bXdrTWDw0AEQv3+LJ1j1jY=";
};
nativeBuildInputs = [
ocaml
findlib
ocamlbuild
topkg
];
buildInputs = [ topkg ];
strictDeps = true;
inherit (topkg) buildPhase installPhase;
meta = {
description = "Monotonic wall-clock time for OCaml";
homepage = "https://erratique.ch/software/mtime";
inherit (ocaml.meta) platforms;
maintainers = [ lib.maintainers.vbgl ];
license = lib.licenses.bsd3;
};
})
|