2023-02-14 15:33:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, kernel
|
|
|
|
}:
|
|
|
|
|
2023-05-20 19:22:35 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "ivsc-driver";
|
2023-12-07 11:46:17 +00:00
|
|
|
version = "unstable-2023-11-09";
|
2023-02-14 15:33:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "intel";
|
|
|
|
repo = "ivsc-driver";
|
2023-12-07 11:46:17 +00:00
|
|
|
rev = "73a044d9633212fac54ea96cdd882ff5ab40573e";
|
|
|
|
hash = "sha256-vE5pOtVqjiWovlUMSEoBKTk/qvs8K8T5oY2r7njh0wQ=";
|
2023-02-14 15:33:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
|
|
|
|
makeFlags = kernel.makeFlags ++ [
|
|
|
|
"KERNELRELEASE=${kernel.modDirVersion}"
|
|
|
|
"KERNEL_SRC=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
sed -i -e "s,INSTALL_MOD_DIR=,INSTALL_MOD_PATH=$out INSTALL_MOD_DIR=," Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
installTargets = [
|
|
|
|
"modules_install"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2023-05-20 19:22:35 +00:00
|
|
|
homepage = "https://github.com/intel/ivsc-driver";
|
2023-02-14 15:33:59 +00:00
|
|
|
description = "Intel Vision Sensing Controller kernel driver";
|
|
|
|
license = lib.licenses.gpl2;
|
2024-05-11 13:44:34 +00:00
|
|
|
maintainers = with lib.maintainers; [ ];
|
2023-02-14 15:33:59 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
broken = kernel.kernelOlder "5.15";
|
|
|
|
};
|
|
|
|
}
|