9 pname = "ipu6-drivers";
10 version = "unstable-2023-11-24";
12 src = fetchFromGitHub {
14 repo = "ipu6-drivers";
15 rev = "07f0612eabfdc31df36f5e316a9eae115807804f";
16 hash = "sha256-8JRZG6IKJT0qtoqJHm8641kSQMLc4Z+DRzK6FpL9Euk=";
20 cp --no-preserve=mode --recursive --verbose \
21 ${ivsc-driver.src}/backport-include \
22 ${ivsc-driver.src}/drivers \
23 ${ivsc-driver.src}/include \
27 nativeBuildInputs = kernel.moduleBuildDependencies;
29 makeFlags = kernel.makeFlags ++ [
30 "KERNELRELEASE=${kernel.modDirVersion}"
31 "KERNEL_SRC=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
34 enableParallelBuilding = true;
37 sed -i -e "s,INSTALL_MOD_DIR=,INSTALL_MOD_PATH=$out INSTALL_MOD_DIR=," Makefile
45 homepage = "https://github.com/intel/ipu6-drivers";
46 description = "IPU6 kernel driver";
47 license = lib.licenses.gpl2Only;
49 platforms = [ "x86_64-linux" ];
50 # requires 6.1.7 https://github.com/intel/ipu6-drivers/pull/84
51 broken = kernel.kernelOlder "6.1.7";