1 {lib, stdenv, fetchurl, ruby, opencl-headers, addOpenGLRunpath }:
3 stdenv.mkDerivation rec {
8 url = "https://forge.imag.fr/frs/download.php/810/${pname}-${version}.tar.gz";
9 sha256 = "0f14gpa13sdm0kzqv5yycp4pschbmi6n5fj7wl4ilspzsrqcgqr2";
12 nativeBuildInputs = [ ruby ];
14 buildInputs = [ opencl-headers ];
17 sed -i 's,"/etc/OpenCL/vendors","${addOpenGLRunpath.driverLink}/etc/OpenCL/vendors",g' ocl_icd_loader.c
21 description = "OpenCL ICD Loader for ${opencl-headers.name}";
22 homepage = "https://forge.imag.fr/projects/ocl-icd/";
23 license = licenses.bsd2;
24 platforms = platforms.linux;