From 380f0cd846f3d2d11431767befd32b08b8b9fc66 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 28 Sep 2025 20:00:28 +0100 Subject: [PATCH] tt-metal: fix `sfpi` hash Without the change the build fails to build as: $ nix build --no-link -f. tt-metal error: hash mismatch in fixed-output derivation '/nix/store/kh2i38k4yn6a8pqi0d04kngylxxld0di-sfpi_7.1.0_x86_64.txz.drv': specified: sha256-eRGNHeKM2T4ZylN4tTghR0vN9F3BY1tfam2puvwVmuM= got: sha256-rQfFveg1ht+jLfk3ZOJadX26+ODE3WW5E0/18eIl7RQ= error: Cannot build '/nix/store/hpd2cacvknpwy52znq6bg0cnnpp2izsb-sfpi-7.1.0.drv'. Reason: 1 dependency failed. Output paths: /nix/store/a3hivpzb9s0w8k8ff4rgv6sfqk1yyry6-sfpi-7.1.0 error: Cannot build '/nix/store/34iy9gahhrdc7j1vphlr8jd5aw4fs1xr-tt-metal-0.62.2.drv'. Reason: 1 dependency failed. Output paths: /nix/store/r3sp4vc5c45i6hfc1kbwivi4lyxw48hm-tt-metal-0.62.2 --- pkgs/by-name/tt/tt-metal/sfpi.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/tt/tt-metal/sfpi.nix b/pkgs/by-name/tt/tt-metal/sfpi.nix index c85b4e282777..d00f3c0c9179 100644 --- a/pkgs/by-name/tt/tt-metal/sfpi.nix +++ b/pkgs/by-name/tt/tt-metal/sfpi.nix @@ -33,11 +33,11 @@ runCommand "sfpi-${version}" { aarch64-linux = fetchurl { url = "https://github.com/tenstorrent/sfpi/releases/download/v${version}/sfpi_${version}_aarch64.txz"; - hash = "sha256-3DQrQewrKnbWNCBw3r7lkwylpKZnouLRG/QXcB6OhDU="; + hash = "sha256-MzI159hiitk1iyeGfQaDOQZhqGjfafpCMz6zmM3HrYs="; }; x86_64-linux = fetchurl { url = "https://github.com/tenstorrent/sfpi/releases/download/v${version}/sfpi_${version}_x86_64.txz"; - hash = "sha256-eRGNHeKM2T4ZylN4tTghR0vN9F3BY1tfam2puvwVmuM="; + hash = "sha256-rQfFveg1ht+jLfk3ZOJadX26+ODE3WW5E0/18eIl7RQ="; }; } ."${stdenv.hostPlatform.system}" or (throw "SFPI does not support ${stdenv.hostPlatform.system}");