1 { stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, mtime }:
3 lib.throwIfNot (lib.versionAtLeast ocaml.version "4.08")
4 "mtime is not available for OCaml ${ocaml.version}"
6 stdenv.mkDerivation rec {
7 pname = "ocaml${ocaml.version}-mtime";
11 url = "https://erratique.ch/software/mtime/releases/mtime-${version}.tbz";
12 sha256 = "VQyYEk8+57Yq8SUuYossaQUHZKqemHDJtf4LK8qjxvc=";
15 nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
16 buildInputs = [ topkg ];
20 inherit (topkg) buildPhase installPhase;