From 94f385e1f44dbf606a803f7bb0101589146e24ea Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 19:28:51 -0600 Subject: [PATCH] ocamlPackages.colors: migrate to finalAttrs --- pkgs/development/ocaml-modules/colors/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/colors/default.nix b/pkgs/development/ocaml-modules/colors/default.nix index 765af72b9d2d..c368c6ea3af3 100644 --- a/pkgs/development/ocaml-modules/colors/default.nix +++ b/pkgs/development/ocaml-modules/colors/default.nix @@ -6,14 +6,14 @@ mdx, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "colors"; version = "0.0.1"; minimalOCamlVersion = "4.13"; src = fetchurl { - url = "https://github.com/leostera/colors/releases/download/${version}/colors-${version}.tbz"; + url = "https://github.com/leostera/colors/releases/download/${finalAttrs.version}/colors-${finalAttrs.version}.tbz"; hash = "sha256-fY1j9FODVnifwsI8qkKm0QSmssgWqYFXJ7y8o7/KmEY="; }; @@ -30,8 +30,8 @@ buildDunePackage rec { meta = { description = "Pure OCaml library for manipulating colors across color spaces"; homepage = "https://github.com/leostera/colors"; - changelog = "https://github.com/leostera/colors/blob/${version}/CHANGES.md"; + changelog = "https://github.com/leostera/colors/blob/${finalAttrs.version}/CHANGES.md"; license = lib.licenses.mit; maintainers = [ ]; }; -} +})