2021-09-29 23:21:54 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ruby
|
|
|
|
, opencl-headers
|
|
|
|
, addOpenGLRunpath
|
|
|
|
, autoreconfHook
|
|
|
|
}:
|
2016-03-29 11:23:12 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ocl-icd";
|
2021-10-01 22:43:22 +01:00
|
|
|
version = "2.3.1";
|
2016-03-29 11:23:12 +01:00
|
|
|
|
2021-09-29 23:21:54 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OCL-dev";
|
|
|
|
repo = "ocl-icd";
|
|
|
|
rev = "v${version}";
|
2021-10-01 22:43:22 +01:00
|
|
|
sha256 = "1km2rqc9pw6xxkqp77a22pxfsb5kgw95w9zd15l5jgvyjb6rqqad";
|
2016-03-29 11:23:12 +01:00
|
|
|
};
|
|
|
|
|
2021-09-29 23:21:54 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
ruby
|
|
|
|
];
|
2017-12-01 00:00:00 +00:00
|
|
|
|
|
|
|
buildInputs = [ opencl-headers ];
|
2017-01-19 23:48:55 +00:00
|
|
|
|
2021-11-09 01:29:29 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-custom-vendordir=/run/opengl-driver/etc/OpenCL/vendors"
|
|
|
|
];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2017-12-01 00:00:00 +00:00
|
|
|
description = "OpenCL ICD Loader for ${opencl-headers.name}";
|
2021-09-29 23:21:54 +01:00
|
|
|
homepage = "https://github.com/OCL-dev/ocl-icd";
|
2016-03-29 11:23:12 +01:00
|
|
|
license = licenses.bsd2;
|
2021-10-06 08:30:32 +01:00
|
|
|
platforms = platforms.unix;
|
2021-11-09 01:29:29 +00:00
|
|
|
maintainers = with maintainers; [ r-burns ];
|
2016-03-29 11:23:12 +01:00
|
|
|
};
|
|
|
|
}
|