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";
|
2024-10-08 10:04:07 +00:00
|
|
|
version = "unstable-2024-09-18";
|
2023-02-14 15:33:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "intel";
|
|
|
|
repo = "ivsc-driver";
|
2024-10-08 10:04:07 +00:00
|
|
|
rev = "10f440febe87419d5c82d8fe48580319ea135b54";
|
|
|
|
hash = "sha256-jc+8geVquRtaZeIOtadCjY9F162Rb05ptE7dk8kuof0=";
|
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";
|
2024-05-26 12:16:07 +00:00
|
|
|
license = lib.licenses.gpl2Only;
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2023-02-14 15:33:59 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
broken = kernel.kernelOlder "5.15";
|
|
|
|
};
|
|
|
|
}
|