-
Notifications
You must be signed in to change notification settings - Fork 0
/
ivsc-driver.nix
41 lines (34 loc) · 1.05 KB
/
ivsc-driver.nix
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
{ lib, stdenv, kernel, ivsc-driver-src, ... }:
let
kernelSrc = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
in
stdenv.mkDerivation rec {
name = "ivsc-driver-${version}-${kernel.version}";
version = "0.0.0";
passthru.moduleName = "intel_vsc";
src = ivsc-driver-src;
nativeBuildInputs = kernel.moduleBuildDependencies;
hardeningDisable = [ "pic" ];
buildFlags = [
"KERNELRELEASE=${kernel.modDirVersion}"
"KERNEL_SRC=${kernelSrc}"
];
installPhase = ''
make -C ${kernelSrc} \
M=$(pwd) \
INSTALL_MOD_PATH=$out \
modules_install
mv include $out/include
'';
meta = with lib; {
maintainers = [ maintainers.mitame ];
license = [ licenses.gpl2Only ];
platforms = [ "i686-linux" "x86_64-linux" ];
broken = versionOlder kernel.version "4.14";
description = "Intel Vision Sensing Controller (IVSC) Driver";
homepage = "https://github.com/intel/ivsc-driver";
longDescription = ''
Drivers for Intel Vision Sensing Controller (IVSC) on Intel Alder Lake platforms.
'';
};
}