Files
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

45 lines
1.2 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
kernel,
kernelModuleMakeFlags,
unstableGitUpdater,
}:
stdenv.mkDerivation {
pname = "hid-tmff2";
# https://github.com/Kimplul/hid-tmff2/blob/ca168637fbfb085ebc9ade0c47fa0653dac5d25b/dkms/dkms-install.sh#L12
version = "0-unstable-2025-07-28";
src = fetchFromGitHub {
owner = "Kimplul";
repo = "hid-tmff2";
rev = "e0a173f3265be8efcbd4a6f34df6c5713d988b15";
hash = "sha256-JZ7nNiNlUdzY9ZJ5AT/xMpSZYz8ej9LByybkBEaHHqk=";
# For hid-tminit. Source: https://github.com/scarburato/hid-tminit
fetchSubmodules = true;
};
nativeBuildInputs = kernel.moduleBuildDependencies;
makeFlags = kernelModuleMakeFlags ++ [
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
];
installFlags = [
"INSTALL_MOD_PATH=${placeholder "out"}"
];
passthru.updateScript = unstableGitUpdater { };
postPatch = "sed -i '/depmod -A/d' Makefile";
meta = with lib; {
description = "Linux kernel module for Thrustmaster T300RS, T248 and TX(experimental)";
homepage = "https://github.com/Kimplul/hid-tmff2";
license = licenses.gpl2Plus;
maintainers = [ maintainers.rayslash ];
platforms = platforms.linux;
};
}