From 50bf7110630dd3ea39cf84f1f00a84c3ecdffd6a Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 19:29:07 -0600 Subject: [PATCH] ocamlPackages.diet: migrate to finalAttrs --- pkgs/development/ocaml-modules/diet/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/diet/default.nix b/pkgs/development/ocaml-modules/diet/default.nix index 0547bd8f6568..f064a83cb471 100644 --- a/pkgs/development/ocaml-modules/diet/default.nix +++ b/pkgs/development/ocaml-modules/diet/default.nix @@ -7,12 +7,12 @@ ounit, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "diet"; version = "0.4"; src = fetchurl { - url = "https://github.com/mirage/ocaml-diet/releases/download/v${version}/diet-v${version}.tbz"; + url = "https://github.com/mirage/ocaml-diet/releases/download/v${finalAttrs.version}/diet-v${finalAttrs.version}.tbz"; sha256 = "96acac2e4fdedb5f47dd8ad2562e723d85ab59cd1bd85554df21ec907b071741"; }; @@ -28,4 +28,4 @@ buildDunePackage rec { description = "Simple implementation of Discrete Interval Encoding Trees"; license = lib.licenses.isc; }; -} +})