tt-system-tools: init at 1.4.0 (#444748)
This commit is contained in:
51
pkgs/by-name/tt/tt-system-tools/package.nix
Normal file
51
pkgs/by-name/tt/tt-system-tools/package.nix
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
makeWrapper,
|
||||
# Remove "? null" once https://github.com/NixOS/nixpkgs/pull/444714 is merged
|
||||
tt-smi ? null,
|
||||
pstree,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "tt-system-tools";
|
||||
version = "1.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tenstorrent";
|
||||
repo = "tt-system-tools";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-ZtEs1XRho/EJShAV6+8Db2wxCK2QQBuNp+TRqb+ZiM4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -Dm755 tt-oops/tt-oops.sh $out/bin/tt-oops
|
||||
wrapProgram "$out/bin/tt-oops" \
|
||||
--prefix PATH : ${
|
||||
lib.makeBinPath [
|
||||
tt-smi
|
||||
pstree
|
||||
]
|
||||
}
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "System tools for Tenstorrent cards";
|
||||
homepage = "https://github.com/tenstorrent/tt-system-tools";
|
||||
changelog = "https://github.com/tenstorrent/tt-system-tools/blob/${finalAttrs.src.tag}/debian/changelog";
|
||||
maintainers = with lib.maintainers; [ RossComputerGuy ];
|
||||
license = with lib.licenses; [ asl20 ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user