2019-05-22 09:30:05 -07:00
|
|
|
{stdenv, fetchurl, ruby, opencl-headers, addOpenGLRunpath }:
|
2016-03-29 03:23:12 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "ocl-icd";
|
2017-01-19 15:48:55 -08:00
|
|
|
version = "2.2.10";
|
2016-03-29 03:23:12 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 05:41:18 -07:00
|
|
|
url = "https://forge.imag.fr/frs/download.php/810/${pname}-${version}.tar.gz";
|
2017-01-19 15:48:55 -08:00
|
|
|
sha256 = "0f14gpa13sdm0kzqv5yycp4pschbmi6n5fj7wl4ilspzsrqcgqr2";
|
2016-03-29 03:23:12 -07:00
|
|
|
};
|
|
|
|
|
2019-06-08 11:56:13 -07:00
|
|
|
nativeBuildInputs = [ ruby ];
|
2017-11-30 16:00:00 -08:00
|
|
|
|
|
|
|
buildInputs = [ opencl-headers ];
|
2017-01-19 15:48:55 -08:00
|
|
|
|
|
|
|
postPatch = ''
|
2019-05-22 09:30:05 -07:00
|
|
|
sed -i 's,"/etc/OpenCL/vendors","${addOpenGLRunpath.driverLink}/etc/OpenCL/vendors",g' ocl_icd_loader.c
|
|
|
|
'';
|
|
|
|
|
2016-03-29 03:23:12 -07:00
|
|
|
meta = with stdenv.lib; {
|
2017-11-30 16:00:00 -08:00
|
|
|
description = "OpenCL ICD Loader for ${opencl-headers.name}";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://forge.imag.fr/projects/ocl-icd/";
|
2016-03-29 03:23:12 -07:00
|
|
|
license = licenses.bsd2;
|
2016-08-02 10:50:55 -07:00
|
|
|
platforms = platforms.linux;
|
2016-03-29 03:23:12 -07:00
|
|
|
};
|
|
|
|
}
|