Update metal to 0.53.0

Use prebuilt sfpi which is patched to work on NixOS and nix sandbox and
elsewhere.
This commit is contained in:
Artturin 2024-12-17 21:39:41 +02:00
parent 8f850c7c62
commit 9abd0fb916
3 changed files with 32 additions and 4 deletions

View file

@ -27,5 +27,32 @@ rec {
'';
};
prebuilt = pkgs.stdenv.mkDerivation rec {
pname = "tt-gcc";
version = "5.0.0";
src = pkgs.fetchzip {
url = "https://github.com/tenstorrent/sfpi/releases/download/v5.0.0/sfpi-release.tgz";
hash = "sha256-RBhJ6BWmvB06zWoELTumpzroHDMpNXU0/WC6elgAkW0=";
};
nativeBuildInputs = with pkgs; [
autoPatchelfHook
];
buildInputs = with pkgs; [
libmpc
mpfr
gmp
zlib
expat
];
installPhase = ''
cp -r . $out
'';
};
tt-gcc = import ./tt-gcc.nix { inherit pkgs; };
}