2018-02-24 13:06:44 +01:00
|
|
|
{stdenv, fetchurl, ruby, opencl-headers, libGL }:
|
2016-03-29 12:23:12 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-01-20 00:48:55 +01:00
|
|
|
name = "ocl-icd-${version}";
|
|
|
|
version = "2.2.10";
|
2016-03-29 12:23:12 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-01-20 00:48:55 +01:00
|
|
|
url = "https://forge.imag.fr/frs/download.php/810/${name}.tar.gz";
|
|
|
|
sha256 = "0f14gpa13sdm0kzqv5yycp4pschbmi6n5fj7wl4ilspzsrqcgqr2";
|
2016-03-29 12:23:12 +02:00
|
|
|
};
|
|
|
|
|
2017-12-01 01:00:00 +01:00
|
|
|
nativeBuildInputs = [ ruby ];
|
|
|
|
|
|
|
|
buildInputs = [ opencl-headers ];
|
2017-01-20 00:48:55 +01:00
|
|
|
|
|
|
|
postPatch = ''
|
2018-02-24 13:06:44 +01:00
|
|
|
sed -i 's,"/etc/OpenCL/vendors","${libGL.driverLink}/etc/OpenCL/vendors",g' ocl_icd_loader.c
|
2017-01-20 00:48:55 +01:00
|
|
|
'';
|
2016-03-29 12:23:12 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-12-01 01:00:00 +01:00
|
|
|
description = "OpenCL ICD Loader for ${opencl-headers.name}";
|
2016-03-29 12:23:12 +02:00
|
|
|
homepage = https://forge.imag.fr/projects/ocl-icd/;
|
|
|
|
license = licenses.bsd2;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = platforms.linux;
|
2016-03-29 12:23:12 +02:00
|
|
|
};
|
|
|
|
}
|