From 684d9912402442f248b9b09e0380a2b8a7e8136c Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 11 Jan 2026 11:01:22 +0000 Subject: [PATCH] python3Packages.tinygrad: use finalAttrs pattern --- pkgs/development/python-modules/tinygrad/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/tinygrad/default.nix b/pkgs/development/python-modules/tinygrad/default.nix index 395b7f60c403..0eaa076fc091 100644 --- a/pkgs/development/python-modules/tinygrad/default.nix +++ b/pkgs/development/python-modules/tinygrad/default.nix @@ -54,7 +54,7 @@ rocmSupport ? config.rocmSupport, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "tinygrad"; version = "0.11.0"; pyproject = true; @@ -62,7 +62,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "tinygrad"; repo = "tinygrad"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-VG2rhkiwPFN3JYSBbqrwCdqhdGE8GY6oEatMSCydhw8="; }; @@ -245,7 +245,7 @@ buildPythonPackage rec { meta = { description = "Simple and powerful neural network framework"; homepage = "https://github.com/tinygrad/tinygrad"; - changelog = "https://github.com/tinygrad/tinygrad/releases/tag/v${version}"; + changelog = "https://github.com/tinygrad/tinygrad/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ GaetanLepage ]; badPlatforms = [ @@ -254,4 +254,4 @@ buildPythonPackage rec { "aarch64-linux" ]; }; -} +})