python312Packages.vdf: avoid using pname for src.repo
[NixPkgs.git] / pkgs / os-specific / linux / ipu6-drivers / default.nix
blob304f27dfb43cd9a39da93fa0bada76a4f3975d40
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , ivsc-driver
5 , kernel
6 }:
8 stdenv.mkDerivation {
9   pname = "ipu6-drivers";
10   version = "unstable-2023-11-24";
12   src = fetchFromGitHub {
13     owner = "intel";
14     repo = "ipu6-drivers";
15     rev = "07f0612eabfdc31df36f5e316a9eae115807804f";
16     hash = "sha256-8JRZG6IKJT0qtoqJHm8641kSQMLc4Z+DRzK6FpL9Euk=";
17   };
19   postPatch = ''
20     cp --no-preserve=mode --recursive --verbose \
21       ${ivsc-driver.src}/backport-include \
22       ${ivsc-driver.src}/drivers \
23       ${ivsc-driver.src}/include \
24       .
25   '';
27   nativeBuildInputs = kernel.moduleBuildDependencies;
29   makeFlags = kernel.makeFlags ++ [
30     "KERNELRELEASE=${kernel.modDirVersion}"
31     "KERNEL_SRC=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
32   ];
34   enableParallelBuilding = true;
36   preInstall = ''
37     sed -i -e "s,INSTALL_MOD_DIR=,INSTALL_MOD_PATH=$out INSTALL_MOD_DIR=," Makefile
38   '';
40   installTargets = [
41     "modules_install"
42   ];
44   meta = {
45     homepage = "https://github.com/intel/ipu6-drivers";
46     description = "IPU6 kernel driver";
47     license = lib.licenses.gpl2Only;
48     maintainers = [ ];
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";
52   };