depot/third_party/nixpkgs/pkgs/os-specific/linux/ivsc-driver/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

43 lines
1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, kernel
}:
stdenv.mkDerivation rec {
pname = "ivsc-drivers";
version = "unstable-2023-01-06";
src = fetchFromGitHub {
owner = "intel";
repo = "ivsc-driver";
rev = "94ecb88b3ac238d9145ac16230d6e0779bb4fd32";
hash = "sha256-Q7iyKw4WFSX42E4AtoW/zYRKpknWZSU66V5VPAx6AjA=";
};
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-drivers";
description = "Intel Vision Sensing Controller kernel driver";
license = lib.licenses.gpl2;
maintainers = with lib.maintainers; [ hexa ];
platforms = [ "x86_64-linux" ];
broken = kernel.kernelOlder "5.15";
};
}