ocamlPackages.poll: migrate to finalAttrs

This commit is contained in:
Guy Chronister
2026-01-21 15:59:46 -06:00
parent eb5893727f
commit 62f6c37aff
@@ -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 ];
};
}
})