Skip to content

Commit

Permalink
nvidia-x11: generate nvidia_icd.json from template
Browse files Browse the repository at this point in the history
  • Loading branch information
jansol authored and fpletz committed Sep 26, 2017
1 parent 79d8ccf commit 4ec3d31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/os-specific/linux/nvidia-x11/builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ installPhase() {

# Install ICDs.
install -Dm644 nvidia.icd $out/etc/OpenCL/vendors/nvidia.icd
if [ -e nvidia_icd.json ]; then
if [ -e nvidia_icd.json.template ]; then
sed "s#__NV_VK_ICD__#libGLX_nvidia.so#" nvidia_icd.json.template > nvidia_icd.json
install -Dm644 nvidia_icd.json $out/share/vulkan/icd.d/nvidia.json
fi
if [ "$useGLVND" = "1" ]; then
Expand Down

0 comments on commit 4ec3d31

Please sign in to comment.