blob: 27237bafbb01e7f09bb9d88cf5b791151e0f0531 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{
stdenv,
lib,
fetchFromGitHub,
kernel,
}:
stdenv.mkDerivation {
pname = "hid-t150";
#https://github.com/scarburato/t150_driver/blob/165d0601e11576186c9416c40144927549ef804d/install.sh#L3
version = "0.8a";
src = fetchFromGitHub {
owner = "scarburato";
repo = "t150_driver";
rev = "580b79b7b479076ba470fcc21fbd8484f5328546";
hash = "sha256-6xqm8500+yMXA/WonMv1JAOS/oIeSNDp9HFuYkEd03U=";
};
nativeBuildInputs = kernel.moduleBuildDependencies;
sourceRoot = "source/hid-t150";
makeFlags = kernel.makeFlags ++ [
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
"INSTALL_MOD_PATH=${placeholder "out"}"
];
installPhase = ''
make -C ${kernel.dev}/lib/modules/${kernel.modDirVersion}/build M=$(pwd) modules_install $makeFlags
'';
meta = with lib; {
description = "A linux kernel driver for Thrustmaster T150 and TMX Force Feedback wheel";
homepage = "https://github.com/scarburato/t150_driver";
license = licenses.gpl2;
maintainers = [ maintainers.dbalan ];
platforms = platforms.linux;
};
}
|