ocamlPackages.{landmarks, landmarks-ppx}: modernized derivation

- Removed with lib;
- Added meta.homepage, meta.longDescription, and meta.changelog
This commit is contained in:
Mutsuha Asada
2025-06-09 08:34:39 +09:00
committed by Vincent Laporte
parent 60a9e7cc58
commit 95612d14de
2 changed files with 15 additions and 3 deletions

View File

@@ -19,5 +19,9 @@ buildDunePackage {
meta = landmarks.meta // {
description = "Preprocessor instrumenting code using the landmarks library";
longDescription = ''
Automatically or semi-automatically instrument your code using
landmarks library.
'';
};
}

View File

@@ -19,9 +19,17 @@ buildDunePackage rec {
doCheck = lib.versionAtLeast ocaml.version "4.08" && lib.versionOlder ocaml.version "5.0";
meta = with lib; {
meta = {
inherit (src.meta) homepage;
description = "Simple Profiling Library for OCaml";
maintainers = [ maintainers.kenran ];
license = licenses.mit;
longDescription = ''
Landmarks is a simple profiling library for OCaml. It provides
primitives to measure time spent in portion of instrumented code. The
instrumentation of the code may either done by hand, automatically or
semi-automatically using the ppx pepreprocessor (see landmarks-ppx package).
'';
changelog = "https://raw.githubusercontent.com/LexiFi/landmarks/refs/tags/v${version}/CHANGES.md";
maintainers = with lib.maintainers; [ kenran ];
license = lib.licenses.mit;
};
}