ocamlPackages.landmarks{,-ppx}: init at 1.4

This commit is contained in:
Johannes Maier 2024-04-12 10:03:32 +02:00 committed by Vincent Laporte
parent 69ef9cc676
commit c069b1b7bd
3 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,18 @@
{ lib, fetchFromGitHub, buildDunePackage, ocaml, landmarks, ppxlib }:
buildDunePackage {
pname = "landmarks-ppx";
minimalOCamlVersion = "4.08";
inherit (landmarks) src version;
buildInputs = [ ppxlib ];
propagatedBuildInputs = [ landmarks ];
doCheck = lib.versionAtLeast ocaml.version "4.08"
&& lib.versionOlder ocaml.version "5.0";
meta = landmarks.meta // {
description = "Preprocessor instrumenting code using the landmarks library";
};
}

View File

@ -0,0 +1,23 @@
{ lib, fetchFromGitHub, buildDunePackage, ocaml }:
buildDunePackage {
pname = "landmarks";
version = "1.4";
minimalOCamlVersion = "4.08";
src = fetchFromGitHub {
owner = "LexiFi";
repo = "landmarks";
rev = "b0c753cd2a4c4aa00dffdd3be187d8ed592fabf7";
hash = "sha256-Wpr76JURUFrj7v39rdM/2Lr7boa7nL/bnPEz1vMrmQo";
};
doCheck = lib.versionAtLeast ocaml.version "4.08"
&& lib.versionOlder ocaml.version "5.0";
meta = with lib; {
description = "A Simple Profiling Library for OCaml";
maintainers = [ maintainers.kenran ];
license = licenses.mit;
};
}

View File

@ -930,6 +930,10 @@ let
inherit (pkgs) lame;
};
landmarks = callPackage ../development/ocaml-modules/landmarks { };
landmarks-ppx = callPackage ../development/ocaml-modules/landmarks-ppx { };
lastfm = callPackage ../development/ocaml-modules/lastfm { };
lem = callPackage ../development/ocaml-modules/lem { };