3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/mtime/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
832 B
Nix
Raw Normal View History

2022-11-18 06:38:21 +00:00
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg }:
lib.throwIfNot (lib.versionAtLeast ocaml.version "4.08")
2022-11-18 06:38:21 +00:00
"mtime is not available for OCaml ${ocaml.version}"
2022-11-18 06:38:21 +00:00
stdenv.mkDerivation rec {
2022-02-06 22:35:27 +00:00
pname = "ocaml${ocaml.version}-mtime";
2022-11-18 06:38:21 +00:00
version = "1.4.0";
src = fetchurl {
2022-11-18 06:38:21 +00:00
url = "https://erratique.ch/software/mtime/releases/mtime-${version}.tbz";
sha256 = "sha256-VQyYEk8+57Yq8SUuYossaQUHZKqemHDJtf4LK8qjxvc=";
};
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
2022-11-18 06:38:21 +00:00
buildInputs = [ topkg ];
strictDeps = true;
2022-11-18 06:38:21 +00:00
inherit (topkg) buildPhase installPhase;
meta = with lib; {
description = "Monotonic wall-clock time for OCaml";
homepage = "https://erratique.ch/software/mtime";
inherit (ocaml.meta) platforms;
2017-04-11 17:08:51 +01:00
maintainers = [ maintainers.vbgl ];
license = licenses.bsd3;
};
}