3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/ocl-icd
Ryan Burns 437fa8d107 ocl-icd: fix ICD vendor path for NixOS
This fixes the vendor ICD load path to work with NixOS's opengl path.
Previously, the only workaround to load ICD files was to manually
override the load path at runtime using an environment variable.

Tested against Intel and Nvidia drivers using the clinfo package:

Before:

```
$ clinfo
Number of platforms                               0
```

After:

```
$ clinfo
Number of platforms                               1
  Platform Name                                   NVIDIA CUDA
  Platform Vendor                                 NVIDIA Corporation
<...>
```
2021-11-08 18:46:16 -08:00
..
default.nix ocl-icd: fix ICD vendor path for NixOS 2021-11-08 18:46:16 -08:00