mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
[Backport release-26.05] ocamlPackages.landmarks: 1.5 → 1.7 (#535731)
This commit is contained in:
commit
67eb2f9e74
2 changed files with 7 additions and 15 deletions
|
|
@ -1,8 +1,5 @@
|
|||
{
|
||||
lib,
|
||||
buildDunePackage,
|
||||
fetchpatch,
|
||||
ocaml,
|
||||
landmarks,
|
||||
ppxlib,
|
||||
}:
|
||||
|
|
@ -10,17 +7,14 @@
|
|||
buildDunePackage {
|
||||
pname = "landmarks-ppx";
|
||||
|
||||
inherit (landmarks) src version;
|
||||
minimalOCamlVersion = "5.3";
|
||||
|
||||
patches = lib.optional (lib.versionAtLeast ppxlib.version "0.36") (fetchpatch {
|
||||
url = "https://github.com/LexiFi/landmarks/commit/367c229e3275a83f81343ba116374bb68abc9d83.patch";
|
||||
hash = "sha256-Qxue+++sNV6EHJGX1mbIeY2E2D5NuFpmIIBkTyvGvo8=";
|
||||
});
|
||||
inherit (landmarks) src version;
|
||||
|
||||
buildInputs = [ ppxlib ];
|
||||
propagatedBuildInputs = [ landmarks ];
|
||||
|
||||
doCheck = lib.versionAtLeast ocaml.version "5.1";
|
||||
doCheck = true;
|
||||
|
||||
meta = landmarks.meta // {
|
||||
description = "Preprocessor instrumenting code using the landmarks library";
|
||||
|
|
|
|||
|
|
@ -2,25 +2,23 @@
|
|||
lib,
|
||||
fetchFromGitHub,
|
||||
buildDunePackage,
|
||||
ocaml,
|
||||
}:
|
||||
|
||||
buildDunePackage (finalAttrs: {
|
||||
pname = "landmarks";
|
||||
version = "1.5";
|
||||
minimalOCamlVersion = "4.08";
|
||||
version = "1.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "LexiFi";
|
||||
repo = "landmarks";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-eIq02D19OzDOrMDHE1Ecrgk+T6s9vj2X6B2HY+z+K8Q=";
|
||||
hash = "sha256-9o9jf0M3zKc+Xojs4dqPRctYswSYqIo0jeOvkfdLfZ4=";
|
||||
};
|
||||
|
||||
doCheck = lib.versionAtLeast ocaml.version "4.08" && lib.versionOlder ocaml.version "5.0";
|
||||
doCheck = true;
|
||||
|
||||
meta = {
|
||||
inherit (finalAttrs.src.meta) homepage;
|
||||
homepage = "https://github.com/LexiFi/landmarks";
|
||||
description = "Simple Profiling Library for OCaml";
|
||||
longDescription = ''
|
||||
Landmarks is a simple profiling library for OCaml. It provides
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue