Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
kernel,
|
|
kernelModuleMakeFlags,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "tt-kmd";
|
|
version = "2.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tenstorrent";
|
|
repo = "tt-kmd";
|
|
tag = "ttkmd-${finalAttrs.version}";
|
|
hash = "sha256-o9F6WsiNQGD/0VraBVO2oEwPTc2Yjh3aitvITp/M2+4=";
|
|
};
|
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
makeFlags = kernelModuleMakeFlags;
|
|
|
|
buildFlags = [
|
|
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
];
|
|
|
|
installFlags = finalAttrs.buildFlags ++ [
|
|
"INSTALL_MOD_PATH=${placeholder "out"}"
|
|
"INSTALL_MOD_DIR=misc"
|
|
];
|
|
|
|
installTargets = [ "modules_install" ];
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/lib/udev/rules.d
|
|
cp udev-50-tenstorrent.rules $out/lib/udev/rules.d/50-tenstorrent.rules
|
|
'';
|
|
|
|
meta = {
|
|
description = "Tenstorrent Kernel Module";
|
|
homepage = "https://github.com/tenstorrent/tt-kmd";
|
|
maintainers = with lib.maintainers; [ RossComputerGuy ];
|
|
license = with lib.licenses; [ gpl2Only ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|