mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
nvidia-x11: generate nvidia_icd.json from template
This commit is contained in:
parent
79d8ccf4f0
commit
4ec3d311cb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user