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