linuxPackages.ipu6-drivers: Reuse ivsc-driver source

Now that the ivsc-driver is packaged as well, we can reuse the source
files.
This commit is contained in:
Martin Weinelt 2023-02-14 17:58:59 +01:00
parent 6b33857238
commit b38d6054d7
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -1,18 +1,10 @@
{ lib
, stdenv
, fetchFromGitHub
, ivsc-driver
, kernel
}:
let
ivsc-driver = fetchFromGitHub {
owner = "intel";
repo = "ivsc-driver";
rev = "94ecb88b3ac238d9145ac16230d6e0779bb4fd32";
hash = "sha256-Q7iyKw4WFSX42E4AtoW/zYRKpknWZSU66V5VPAx6AjA=";
};
in
stdenv.mkDerivation rec {
pname = "ipu6-drivers";
version = "unstable-2023-01-17";
@ -26,9 +18,9 @@ stdenv.mkDerivation rec {
postPatch = ''
cp --no-preserve=mode --recursive --verbose \
${ivsc-driver}/backport-include \
${ivsc-driver}/drivers \
${ivsc-driver}/include \
${ivsc-driver.src}/backport-include \
${ivsc-driver.src}/drivers \
${ivsc-driver.src}/include \
.
'';