From e6ef6abd77fdb461c0120942e9a01957632fb0bb Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 19:28:54 -0600 Subject: [PATCH] ocamlPackages.cstruct: migrate to finalAttrs --- pkgs/development/ocaml-modules/cstruct/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/cstruct/default.nix b/pkgs/development/ocaml-modules/cstruct/default.nix index 8fac97fde6c9..38bfe8236153 100644 --- a/pkgs/development/ocaml-modules/cstruct/default.nix +++ b/pkgs/development/ocaml-modules/cstruct/default.nix @@ -7,7 +7,7 @@ crowbar, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "cstruct"; version = "6.2.0"; @@ -15,7 +15,7 @@ buildDunePackage rec { duneVersion = "3"; src = fetchurl { - url = "https://github.com/mirage/ocaml-cstruct/releases/download/v${version}/cstruct-${version}.tbz"; + url = "https://github.com/mirage/ocaml-cstruct/releases/download/v${finalAttrs.version}/cstruct-${finalAttrs.version}.tbz"; hash = "sha256-mngHM5JYDoNJFI+jq0sbLpidydMNB0AbBMlrfGDwPmI="; }; @@ -33,4 +33,4 @@ buildDunePackage rec { homepage = "https://github.com/mirage/ocaml-cstruct"; maintainers = [ lib.maintainers.vbgl ]; }; -} +})