From ca4bb3ebcf0e917c961a3bcd2ba71b539ab886f3 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:40 -0600 Subject: [PATCH] ocamlPackages.arg-complete: migrate to finalAttrs --- pkgs/development/ocaml-modules/arg-complete/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/arg-complete/default.nix b/pkgs/development/ocaml-modules/arg-complete/default.nix index 341971b35e88..a981a79e8992 100644 --- a/pkgs/development/ocaml-modules/arg-complete/default.nix +++ b/pkgs/development/ocaml-modules/arg-complete/default.nix @@ -7,12 +7,12 @@ ounit2, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "arg-complete"; version = "0.2.1"; src = fetchurl { - url = "https://github.com/sim642/ocaml-arg-complete/releases/download/${version}/arg-complete-${version}.tbz"; + url = "https://github.com/sim642/ocaml-arg-complete/releases/download/${finalAttrs.version}/arg-complete-${finalAttrs.version}.tbz"; hash = "sha256-SZvLaeeqY3j2LUvqxGs0Vw57JnnpdvAk1jnE3pk27QU="; }; @@ -24,8 +24,8 @@ buildDunePackage rec { meta = { description = "Bash completion support for OCaml Stdlib.Arg"; homepage = "https://sim642.github.io/ocaml-arg-complete/"; - changelog = "https://raw.githubusercontent.com/sim642/ocaml-arg-complete/refs/tags/${version}/CHANGELOG.md"; + changelog = "https://raw.githubusercontent.com/sim642/ocaml-arg-complete/refs/tags/${finalAttrs.version}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = [ lib.maintainers.vbgl ]; }; -} +})