567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
41 lines
808 B
Nix
41 lines
808 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchurl,
|
|
ocaml,
|
|
findlib,
|
|
ocamlbuild,
|
|
topkg,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ocaml${ocaml.version}-mtime";
|
|
version = "2.1.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://erratique.ch/software/mtime/releases/mtime-${version}.tbz";
|
|
sha256 = "sha256-CXyygC43AerZVy4bSD1aKMbi8KOUSfqvm0StiomDTYg=";
|
|
};
|
|
|
|
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;
|
|
broken = !(lib.versionAtLeast ocaml.version "4.08");
|
|
};
|
|
}
|