Merge pull request #258397 from Atemu/init/nct6687d

kernelPackages.nct6687d: init at unstable-2023-09-22
This commit is contained in:
Atemu 2023-11-01 11:22:15 +01:00 committed by GitHub
commit 954929831d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ lib
, stdenv
, fetchFromGitHub
, kernel
}:
stdenv.mkDerivation rec {
pname = "nct6687d";
version = "unstable-2023-09-22";
src = fetchFromGitHub {
owner = "Fred78290";
repo = "nct6687d";
rev = "cdfe855342a9383a9c4c918d51576c36d989070d";
hash = "sha256-iOLWxj4I6oYkNXFSkmw7meTQEnrIfb4Mw+/LkzgzDxM=";
};
setSourceRoot = ''
export sourceRoot=$(pwd)/source
'';
nativeBuildInputs = kernel.moduleBuildDependencies;
makeFlags = kernel.makeFlags ++ [
"-C" "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
"M=$(sourceRoot)"
];
buildFlags = [ "modules" ];
installFlags = [ "INSTALL_MOD_PATH=${placeholder "out"}" ];
installTargets = [ "modules_install" ];
meta = with lib; {
description = "Kernel module for the Nuvoton NCT6687-R chipset found on many B550/B650 motherboards from ASUS and MSI";
license = with licenses; [ gpl2Only ];
homepage = "https://github.com/Fred78290/nct6687d/";
platforms = platforms.linux;
maintainers = with maintainers; [ atemu ];
};
}

View file

@ -393,6 +393,8 @@ in {
mbp2018-bridge-drv = callPackage ../os-specific/linux/mbp-modules/mbp2018-bridge-drv { };
nct6687d = callPackage ../os-specific/linux/nct6687d { };
new-lg4ff = callPackage ../os-specific/linux/new-lg4ff { };
nvidiabl = callPackage ../os-specific/linux/nvidiabl { };