mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
f53387e15a
This updates the ipu6 driver and firmware to a more recent version, which seems to at least work in Chrom{e,ium}. ipu6-drivers now relies on the in-kernel ipu6 kernel driver, so we update our logic and metadata for it.
44 lines
1010 B
Nix
44 lines
1010 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, kernel
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "ivsc-driver";
|
|
version = "unstable-2024-09-18";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "intel";
|
|
repo = "ivsc-driver";
|
|
rev = "10f440febe87419d5c82d8fe48580319ea135b54";
|
|
hash = "sha256-jc+8geVquRtaZeIOtadCjY9F162Rb05ptE7dk8kuof0=";
|
|
};
|
|
|
|
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 = {
|
|
homepage = "https://github.com/intel/ivsc-driver";
|
|
description = "Intel Vision Sensing Controller kernel driver";
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = [ ];
|
|
platforms = [ "x86_64-linux" ];
|
|
broken = kernel.kernelOlder "5.15";
|
|
};
|
|
}
|