From 5dd15df9873da25a645c57f1a2ebf120e6e79729 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Thu, 22 Jan 2026 10:14:10 -0600 Subject: [PATCH] ocamlPackages.landmarks: migrate to finalAttrs --- pkgs/development/ocaml-modules/landmarks/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/ocaml-modules/landmarks/default.nix b/pkgs/development/ocaml-modules/landmarks/default.nix index 40375794fd0c..757417c82f23 100644 --- a/pkgs/development/ocaml-modules/landmarks/default.nix +++ b/pkgs/development/ocaml-modules/landmarks/default.nix @@ -5,7 +5,7 @@ ocaml, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "landmarks"; version = "1.5"; minimalOCamlVersion = "4.08"; @@ -13,14 +13,14 @@ buildDunePackage rec { src = fetchFromGitHub { owner = "LexiFi"; repo = "landmarks"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-eIq02D19OzDOrMDHE1Ecrgk+T6s9vj2X6B2HY+z+K8Q="; }; doCheck = lib.versionAtLeast ocaml.version "4.08" && lib.versionOlder ocaml.version "5.0"; meta = { - inherit (src.meta) homepage; + inherit (finalAttrs.src.meta) homepage; description = "Simple Profiling Library for OCaml"; longDescription = '' Landmarks is a simple profiling library for OCaml. It provides @@ -28,8 +28,8 @@ buildDunePackage rec { 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"; + changelog = "https://raw.githubusercontent.com/LexiFi/landmarks/refs/tags/v${finalAttrs.version}/CHANGES.md"; maintainers = with lib.maintainers; [ kenran ]; license = lib.licenses.mit; }; -} +})