Files
nixpkgs/pkgs/development/ocaml-modules/mtime/default.nix
2026-08-07 08:10:34 +02:00

40 lines
770 B
Nix

{
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;
};
})