Merge pull request #179636 from Atemu/libstrangle-wrapper-library-path
libstrangle: use direct nix store path in layer json
This commit is contained in:
commit
111998cd3b
1 changed files with 6 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue