tt-flake/pkgs/umd/default.nix

36 lines
612 B
Nix
Raw Normal View History

2024-01-31 05:20:40 +00:00
{ 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=";
};
2024-10-01 18:41:35 +00:00
patches = [
./fmt_mystery.patch
./missing_headers.patch
];
2024-01-31 05:20:40 +00:00
makeFlags = [
"DEVICE_CXX=${pkgs.stdenv.cc.targetPrefix}c++"
"ARCH_NAME=grayskull"
];
2024-10-01 18:41:35 +00:00
buildInputs = with pkgs; [
libyamlcpp
boost
fmt
hwloc
];
2024-01-31 05:20:40 +00:00
installPhase = ''
mkdir $out
mv build/lib $out
'';
}