blob: 3025e3507599a1b81918b94739f87c68650fa136 (
about) (
plain)
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
41
42
43
44
45
46
47
48
|
{
lib,
stdenv,
fetchFromGitHub,
kernel,
kernelModuleMakeFlags,
nix-update-script,
}:
stdenv.mkDerivation {
pname = "nct6687d";
version = "0-unstable-2025-10-24";
src = fetchFromGitHub {
owner = "Fred78290";
repo = "nct6687d";
rev = "15089b021875bf69381735e504268aaf269a5724";
hash = "sha256-HRaB+Fy+u7kdyZFFr7hfKN8rz10hT1DW9bN7K5NW7FM=";
};
setSourceRoot = ''
export sourceRoot=$(pwd)/source
'';
nativeBuildInputs = kernel.moduleBuildDependencies;
makeFlags = kernelModuleMakeFlags ++ [
"-C"
"${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
"M=$(sourceRoot)"
];
buildFlags = [ "modules" ];
installFlags = [ "INSTALL_MOD_PATH=${placeholder "out"}" ];
installTargets = [ "modules_install" ];
passthru.updateScript = nix-update-script {
extraArgs = [ "--version=branch=main" ];
};
meta = {
description = "Kernel module for the Nuvoton NCT6687-R chipset found on many B550/B650 motherboards from ASUS and MSI";
license = with lib.licenses; [ gpl2Only ];
homepage = "https://github.com/Fred78290/nct6687d/";
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ atemu ];
};
}
|