Update metal

This commit is contained in:
Artturin 2024-11-20 22:19:43 +02:00
parent 29dc8c01e2
commit d937e5c7fa
5 changed files with 177 additions and 69 deletions

View file

@ -3,12 +3,13 @@
rec {
sfpi = pkgs.stdenv.mkDerivation {
pname = "sfpi";
version = "unstable-2024-10-10";
version = "unstable-2024-09-25";
src = pkgs.fetchFromGitHub {
owner = "tenstorrent-metal";
repo = "sfpi";
rev = "899b8b6c90fc3e18ad081fd556eaa1a473c8a357";
# One commit before they started to use gcc 12
rev = "08d39202f283ab9122e162bcead5b7c90014fa86";
hash = "sha256-EZHUhAqn9/r02IC+TVoxfIyzEctYQKd5azcrXE5DIgg=";
};
@ -24,36 +25,6 @@ rec {
mkdir -p $out/compiler/libexec
bin/release.sh $out
'';
passthru = { inherit sfpi-no-lfs; };
};
sfpi-no-lfs = pkgs.stdenv.mkDerivation {
pname = "sfpi";
version = "unstable-2024-11-15";
src = pkgs.fetchFromGitHub {
owner = "tenstorrent-metal";
repo = "sfpi";
rev = "fcb552bc66d274fc4ffadc35eb4e6d1f20b2e6b3";
hash = "";
fetchSubmodules = true;
};
postPatch = ''
patchShebangs --build $scripts/build.sh
'';
buildPhase = ''
./scripts/build.sh
'';
installPhase = ''
mkdir -p "$out"
cp -r ./sfpi/* "$out"
'';
};
tt-gcc = import ./tt-gcc.nix { inherit pkgs; };

View file

@ -8,10 +8,10 @@ pkgs.stdenv.mkDerivation rec {
owner = "tenstorrent-metal";
repo = "sfpi-tt-gcc";
# https://github.com/tenstorrent/sfpi-tt-gcc/commits/tt-rel/gcc-12.2
rev = "a5c31334942e9df66427837f7268269311fdfc2e";
rev = "fad3c23c8972adb739ef62d2f35d770062a7cd73";
# this takes a while and we don't need all of them
fetchSubmodules = true;
hash = "sha256-1d77+6Yv3i4M7J+vUwcUuFg56wCG9oVeDt+fvBKtHPI=";
hash = "sha256-X2uVyk4uo0TuDu/2nUXk2v8A4RURvhg0MAoCssAuljI=";
};
nativeBuildInputs = with pkgs; [