Merge: linuxPackages.tt-kmd: init at 2.0.0 (#421385)

authored by Maximilian Bosch and committed by GitHub 073a2d1d 4dab91c0

+45
+43
pkgs/os-specific/linux/tt-kmd/default.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + kernel, 6 + }: 7 + stdenv.mkDerivation (finalAttrs: { 8 + pname = "tt-kmd"; 9 + version = "2.0.0"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "tenstorrent"; 13 + repo = "tt-kmd"; 14 + tag = "ttkmd-${finalAttrs.version}"; 15 + hash = "sha256-Y85857oWzsltRyRWpK8Wi0H38mBFwqM3+iXkwVK4DPY="; 16 + }; 17 + 18 + nativeBuildInputs = kernel.moduleBuildDependencies; 19 + 20 + buildFlags = [ 21 + "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" 22 + ]; 23 + 24 + installFlags = finalAttrs.buildFlags ++ [ 25 + "INSTALL_MOD_PATH=${placeholder "out"}" 26 + "INSTALL_MOD_DIR=misc" 27 + ]; 28 + 29 + installTargets = [ "modules_install" ]; 30 + 31 + postInstall = '' 32 + mkdir -p $out/lib/udev/rules.d 33 + cp udev-50-tenstorrent.rules $out/lib/udev/rules.d/50-tenstorrent.rules 34 + ''; 35 + 36 + meta = { 37 + description = "Tenstorrent Kernel Module"; 38 + homepage = "https://github.com/tenstorrent/tt-kmd"; 39 + maintainers = with lib.maintainers; [ RossComputerGuy ]; 40 + license = with lib.licenses; [ gpl2Only ]; 41 + platforms = lib.platforms.linux; 42 + }; 43 + })
+2
pkgs/top-level/linux-kernels.nix
··· 610 610 611 611 tp_smapi = callPackage ../os-specific/linux/tp_smapi { }; 612 612 613 + tt-kmd = callPackage ../os-specific/linux/tt-kmd { }; 614 + 613 615 turbostat = callPackage ../os-specific/linux/turbostat { }; 614 616 615 617 corefreq = callPackage ../os-specific/linux/corefreq { };