Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
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;
};
}