Commit 95612d14 authored by Mutsuha Asada's avatar Mutsuha Asada Committed by Vincent Laporte
Browse files

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

- Removed with lib;
- Added meta.homepage, meta.longDescription, and meta.changelog
parent 60a9e7cc
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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.
    '';
  };
}
+11 −3
Original line number Diff line number Diff line
@@ -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;
  };
}