mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
linuxPackages.ipu6-drivers: fix build on Linux >= 6.12
There's been some header files being moved around, and these paches are necessary to build on Linux >= 6.12. Tested compilation with 6.11 and 6.12.
This commit is contained in:
parent
f93401eeed
commit
162195d35b
@ -1,6 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, ivsc-driver
|
, ivsc-driver
|
||||||
, kernel
|
, kernel
|
||||||
}:
|
}:
|
||||||
@ -16,7 +17,21 @@ stdenv.mkDerivation rec {
|
|||||||
hash = "sha256-xdMwINoKrdRHCPMpdZQn86ATi1dAXncMU39LLXS16mc=";
|
hash = "sha256-xdMwINoKrdRHCPMpdZQn86ATi1dAXncMU39LLXS16mc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ "${src}/patches/0001-v6.10-IPU6-headers-used-by-PSYS.patch" ];
|
patches = [
|
||||||
|
"${src}/patches/0001-v6.10-IPU6-headers-used-by-PSYS.patch"
|
||||||
|
|
||||||
|
|
||||||
|
# Fix compilation with kernels >= 6.12
|
||||||
|
# https://github.com/intel/ipu6-drivers/pull/283
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/intel/ipu6-drivers/pull/283/commits/391832777148e8e59ebf08e5d04f87dc8f3cef5b.patch";
|
||||||
|
hash = "sha256-oC7wn4jrHNtvsgouq7F+ufIE02pJcm42ZmgU2TrAvjA=";
|
||||||
|
})
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/intel/ipu6-drivers/pull/283/commits/5379758bcb21be56b600817edf989dcc2c1775cf.patch";
|
||||||
|
hash = "sha256-9nOm0ffSNoyVV1y4J6RKBVRVYRxrEPOnggFXGIExLxs=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
cp --no-preserve=mode --recursive --verbose \
|
cp --no-preserve=mode --recursive --verbose \
|
||||||
|
Loading…
Reference in New Issue
Block a user