tt-flake/pkgs/sfpi/default.nix

32 lines
648 B
Nix
Raw Normal View History

2024-01-31 05:20:40 +00:00
{ pkgs }:
rec {
sfpi = pkgs.stdenv.mkDerivation {
pname = "sfpi";
2024-11-20 20:19:43 +00:00
version = "unstable-2024-09-25";
2024-01-31 05:20:40 +00:00
src = pkgs.fetchFromGitHub {
owner = "tenstorrent-metal";
repo = "sfpi";
2024-11-20 20:19:43 +00:00
# One commit before they started to use gcc 12
rev = "08d39202f283ab9122e162bcead5b7c90014fa86";
hash = "sha256-EZHUhAqn9/r02IC+TVoxfIyzEctYQKd5azcrXE5DIgg=";
2024-01-31 05:20:40 +00:00
};
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; };
}