ocl-icd: fix cross-compilation

This commit is contained in:
Jan Malakhovski 2017-12-01 00:00:00 +00:00
parent 63a1c0c807
commit d64748295a

View File

@ -9,7 +9,9 @@ stdenv.mkDerivation rec {
sha256 = "0f14gpa13sdm0kzqv5yycp4pschbmi6n5fj7wl4ilspzsrqcgqr2";
};
buildInputs = [ ruby opencl-headers ];
nativeBuildInputs = [ ruby ];
buildInputs = [ opencl-headers ];
postPatch = ''
sed -i 's,"/etc/OpenCL/vendors","${mesa_noglu.driverLink}/etc/OpenCL/vendors",g' ocl_icd_loader.c