libstrangle: support 32bit via implicit layer

This commit is contained in:
Atemu 2022-07-07 18:33:27 +02:00
parent 1a37a30af7
commit 5194de18ee

View File

@ -24,6 +24,8 @@ stdenv.mkDerivation rec {
substituteAllInPlace src/stranglevk.sh substituteAllInPlace src/stranglevk.sh
''; '';
postInstall = '' postInstall = ''
substitute $out/share/vulkan/implicit_layer.d/libstrangle_vk.json $out/share/vulkan/implicit_layer.d/libstrangle_vk.x86.json \
--replace "libstrangle_vk.so" "$out/lib/libstrangle/lib32/libstrangle_vk.so"
substituteInPlace $out/share/vulkan/implicit_layer.d/libstrangle_vk.json \ substituteInPlace $out/share/vulkan/implicit_layer.d/libstrangle_vk.json \
--replace "libstrangle_vk.so" "$out/lib/libstrangle/lib64/libstrangle_vk.so" --replace "libstrangle_vk.so" "$out/lib/libstrangle/lib64/libstrangle_vk.so"
''; '';