From eea3eab2f6776644315abd3d14827a7195c4cbc5 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Thu, 22 Jan 2026 12:09:16 -0600 Subject: [PATCH] ocamlPackages.re: migrate to finalAttrs --- pkgs/development/ocaml-modules/re/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/re/default.nix b/pkgs/development/ocaml-modules/re/default.nix index 54bd7a664ae2..eff1957679eb 100644 --- a/pkgs/development/ocaml-modules/re/default.nix +++ b/pkgs/development/ocaml-modules/re/default.nix @@ -27,20 +27,20 @@ let }; in -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "re"; version = version_sha.version; minimalOCamlVersion = "4.02"; src = fetchurl { - url = "https://github.com/ocaml/ocaml-re/releases/download/${version}/re-${version}.tbz"; + url = "https://github.com/ocaml/ocaml-re/releases/download/${finalAttrs.version}/re-${finalAttrs.version}.tbz"; inherit (version_sha) hash; }; propagatedBuildInputs = [ seq ]; doCheck = lib.versionAtLeast ocaml.version "4.08"; - checkInputs = [ (if lib.versionAtLeast version "1.12" then ounit2 else ounit) ]; + checkInputs = [ (if lib.versionAtLeast finalAttrs.version "1.12" then ounit2 else ounit) ]; meta = { homepage = "https://github.com/ocaml/ocaml-re"; @@ -48,4 +48,4 @@ buildDunePackage rec { license = lib.licenses.lgpl2; maintainers = with lib.maintainers; [ vbgl ]; }; -} +})