nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 fetchurl,
5 ocaml,
6 findlib,
7 ocamlbuild,
8 topkg,
9}:
10
11stdenv.mkDerivation rec {
12 pname = "ocaml${ocaml.version}-mtime";
13 version = "2.1.0";
14
15 src = fetchurl {
16 url = "https://erratique.ch/software/mtime/releases/mtime-${version}.tbz";
17 sha256 = "sha256-CXyygC43AerZVy4bSD1aKMbi8KOUSfqvm0StiomDTYg=";
18 };
19
20 nativeBuildInputs = [
21 ocaml
22 findlib
23 ocamlbuild
24 topkg
25 ];
26 buildInputs = [ topkg ];
27
28 strictDeps = true;
29
30 inherit (topkg) buildPhase installPhase;
31
32 meta = {
33 description = "Monotonic wall-clock time for OCaml";
34 homepage = "https://erratique.ch/software/mtime";
35 inherit (ocaml.meta) platforms;
36 maintainers = [ lib.maintainers.vbgl ];
37 license = lib.licenses.bsd3;
38 broken = !(lib.versionAtLeast ocaml.version "4.08");
39 };
40}