tt-flake/pkgs/sfpi/default.nix
Artturin 0299aef5aa {sfpi,tt-gcc}: Use gcc 12 versions
tt-metal uses gcc 12
2024-10-01 23:24:11 +03:00

32 lines
648 B
Nix

{ pkgs }:
rec {
sfpi = pkgs.stdenv.mkDerivation {
pname = "sfpi";
version = "unstable-2024-09-25";
src = pkgs.fetchFromGitHub {
owner = "tenstorrent-metal";
repo = "sfpi";
# One commit before they started to use gcc 12
rev = "08d39202f283ab9122e162bcead5b7c90014fa86";
hash = "sha256-EZHUhAqn9/r02IC+TVoxfIyzEctYQKd5azcrXE5DIgg=";
};
postPatch = ''
ln -s ${tt-gcc} compiler
'';
buildPhase = ''
make -C tests all
'';
installPhase = ''
mkdir -p $out/compiler/libexec
bin/release.sh $out
'';
};
tt-gcc = import ./tt-gcc.nix { inherit pkgs; };
}