From 62f6c37aff91b8726763a2a4b2be034286e59ffb Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:46 -0600 Subject: [PATCH] ocamlPackages.poll: migrate to finalAttrs --- pkgs/development/ocaml-modules/poll/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/poll/default.nix b/pkgs/development/ocaml-modules/poll/default.nix index 0f0e616da1ba..0f17fc17c22b 100644 --- a/pkgs/development/ocaml-modules/poll/default.nix +++ b/pkgs/development/ocaml-modules/poll/default.nix @@ -8,14 +8,14 @@ ppx_optcomp, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "poll"; version = "0.3.1"; minimalOCamlVersion = "4.13"; src = fetchurl { - url = "https://github.com/anuragsoni/poll/releases/download/${version}/poll-${version}.tbz"; + url = "https://github.com/anuragsoni/poll/releases/download/${finalAttrs.version}/poll-${finalAttrs.version}.tbz"; hash = "sha256-IX6SivK/IMQaGgMgWiIsNgUSMHP6z1E/TSB0miaQ8pw="; }; @@ -37,8 +37,8 @@ buildDunePackage rec { meta = { description = "Portable OCaml interface to macOS/Linux/Windows native IO event notification mechanisms"; homepage = "https://github.com/anuragsoni/poll"; - changelog = "https://github.com/anuragsoni/poll/blob/${version}/CHANGES.md"; + changelog = "https://github.com/anuragsoni/poll/blob/${finalAttrs.version}/CHANGES.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ sixstring982 ]; }; -} +})