Merge pull request #179636 from Atemu/libstrangle-wrapper-library-path

libstrangle: use direct nix store path in layer json
This commit is contained in:
Kira Bruneau 2022-07-08 14:48:40 -04:00 committed by GitHub
commit 111998cd3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,6 +23,12 @@ stdenv.mkDerivation rec {
substituteAllInPlace src/strangle.sh
substituteAllInPlace src/stranglevk.sh
'';
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 \
--replace "libstrangle_vk.so" "$out/lib/libstrangle/lib64/libstrangle_vk.so"
'';
meta = with lib; {
homepage = "https://gitlab.com/torkel104/libstrangle";