8 stdenv.mkDerivation rec {
10 version = "0-unstable-2024-09-02";
12 src = fetchFromGitHub {
15 rev = "f45b72a6ca335e20f8a2df5ee5d4e130916150d0";
16 hash = "sha256-2sAL6aXUafmm2DKIhqEoTSPZVmzu/lnTkpPznJndX3o=";
20 export sourceRoot=$(pwd)/source
23 nativeBuildInputs = kernel.moduleBuildDependencies;
25 makeFlags = kernel.makeFlags ++ [
26 "-C" "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
30 buildFlags = [ "modules" ];
31 installFlags = [ "INSTALL_MOD_PATH=${placeholder "out"}" ];
32 installTargets = [ "modules_install" ];
34 passthru.updateScript = nix-update-script {
35 extraArgs = [ "--version=branch=main" ];
39 description = "Kernel module for the Nuvoton NCT6687-R chipset found on many B550/B650 motherboards from ASUS and MSI";
40 license = with licenses; [ gpl2Only ];
41 homepage = "https://github.com/Fred78290/nct6687d/";
42 platforms = platforms.linux;
43 maintainers = with maintainers; [ atemu ];