libstrangle: use direct nix store path in layer json

This allows you to load libstrangle without setting LD_LIBRARY_PATH to include
it. Only ENABLE_VK_LAYER_TORKEL104_libstrangle=1 is required now, as expected of
an implicit layer.

Previously, you were required to run your VK app via the wrapper:

STRANGLE_FPS=30 strangle vkcube

Now you can control it via simple environment variables alone:

ENABLE_VK_LAYER_TORKEL104_libstrangle=1 STRANGLE_FPS=30 vkcube

Atemu 1a37a30a 6141b893

+4
+4
pkgs/tools/X11/libstrangle/default.nix
··· 23 23 substituteAllInPlace src/strangle.sh 24 24 substituteAllInPlace src/stranglevk.sh 25 25 ''; 26 + postInstall = '' 27 + substituteInPlace $out/share/vulkan/implicit_layer.d/libstrangle_vk.json \ 28 + --replace "libstrangle_vk.so" "$out/lib/libstrangle/lib64/libstrangle_vk.so" 29 + ''; 26 30 27 31 meta = with lib; { 28 32 homepage = "https://gitlab.com/torkel104/libstrangle";