2021-02-05 17:12:51 +00:00
|
|
|
{lib, stdenv, fetchurl, ruby, opencl-headers, addOpenGLRunpath }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ocl-icd";
|
|
|
|
version = "2.2.10";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://forge.imag.fr/frs/download.php/810/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0f14gpa13sdm0kzqv5yycp4pschbmi6n5fj7wl4ilspzsrqcgqr2";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ ruby ];
|
|
|
|
|
|
|
|
buildInputs = [ opencl-headers ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i 's,"/etc/OpenCL/vendors","${addOpenGLRunpath.driverLink}/etc/OpenCL/vendors",g' ocl_icd_loader.c
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "OpenCL ICD Loader for ${opencl-headers.name}";
|
|
|
|
homepage = "https://forge.imag.fr/projects/ocl-icd/";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|