ocl-icd: 2.2.9 -> 2.2.10
Patch to search for OpenCL vendor files in Mesa driver link directory.
This commit is contained in:
parent
10bae1a207
commit
af7a8a36df
|
@ -1,14 +1,19 @@
|
|||
{stdenv, fetchurl, ruby }:
|
||||
{stdenv, fetchurl, ruby, opencl-headers, mesa_noglu }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ocl-icd-2.2.9";
|
||||
name = "ocl-icd-${version}";
|
||||
version = "2.2.10";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://forge.imag.fr/frs/download.php/716/${name}.tar.gz";
|
||||
sha256 = "1rgaixwnxmrq2aq4kcdvs0yx7i6krakarya9vqs7qwsv5hzc32hc";
|
||||
url = "https://forge.imag.fr/frs/download.php/810/${name}.tar.gz";
|
||||
sha256 = "0f14gpa13sdm0kzqv5yycp4pschbmi6n5fj7wl4ilspzsrqcgqr2";
|
||||
};
|
||||
|
||||
buildInputs = [ ruby ];
|
||||
buildInputs = [ ruby opencl-headers ];
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's,"/etc/OpenCL/vendors","${mesa_noglu.driverLink}/etc/OpenCL/vendors",g' ocl_icd_loader.c
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "OpenCL ICD Loader";
|
||||
|
|
Loading…
Reference in New Issue