summary refs log tree commit diff
path: root/pkgs/os-specific/linux
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2023-11-01 12:01:45 +0000
committerGitHub <noreply@github.com>2023-11-01 12:01:45 +0000
commiteafaa27c7ead6ad710e2fc1fa334b73d9939b4ae (patch)
treed07de909b75200ad65eb13687186745f387bae41 /pkgs/os-specific/linux
parentfabf4a67d3dc3cb5a238637f9e19aace006c5cfc (diff)
parent53a128364c4ed351976f67aae3518940a044c287 (diff)
downloadnixpkgs-eafaa27c7ead6ad710e2fc1fa334b73d9939b4ae.tar
nixpkgs-eafaa27c7ead6ad710e2fc1fa334b73d9939b4ae.tar.gz
nixpkgs-eafaa27c7ead6ad710e2fc1fa334b73d9939b4ae.tar.bz2
nixpkgs-eafaa27c7ead6ad710e2fc1fa334b73d9939b4ae.tar.lz
nixpkgs-eafaa27c7ead6ad710e2fc1fa334b73d9939b4ae.tar.xz
nixpkgs-eafaa27c7ead6ad710e2fc1fa334b73d9939b4ae.tar.zst
nixpkgs-eafaa27c7ead6ad710e2fc1fa334b73d9939b4ae.zip
Merge staging-next into staging
Diffstat (limited to 'pkgs/os-specific/linux')
-rw-r--r--pkgs/os-specific/linux/nct6687d/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/nct6687d/default.nix b/pkgs/os-specific/linux/nct6687d/default.nix
new file mode 100644
index 00000000000..493d0e6af10
--- /dev/null
+++ b/pkgs/os-specific/linux/nct6687d/default.nix
@@ -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 ];
+  };
+}