This commit is contained in:
ziguana 2024-01-30 22:20:40 -07:00
commit 0e4e4b0979
19 changed files with 3185 additions and 0 deletions

27
pkgs/umd/default.nix Normal file
View file

@ -0,0 +1,27 @@
{ pkgs }:
pkgs.stdenv.mkDerivation {
pname = "tt-umd";
version = "main-2024-02-01";
src = pkgs.fetchFromGitHub {
owner = "tenstorrent-metal";
repo = "umd";
rev = "341f5b7b299f128faaf2ca446a03298cb781a645";
hash = "sha256-jMxhhFWnCjNZZvFiTCeuEHvxvE0+IoaP4NJkr/CDLy8=";
};
patches = [ ./fmt_mystery.patch ./missing_headers.patch ];
makeFlags = [
"DEVICE_CXX=${pkgs.stdenv.cc.targetPrefix}c++"
"ARCH_NAME=grayskull"
];
buildInputs = with pkgs; [ libyamlcpp boost fmt hwloc ];
installPhase = ''
mkdir $out
mv build/lib $out
'';
}