3
0
Fork 0
forked from mirrors/nixpkgs

vkbasalt: install default configuration file

Needed for programs like vkbasalt-cli.
For vkbasalt itself, this configuration has last priority.
This commit is contained in:
Martino Fontana 2022-11-21 22:13:05 +01:00
parent c0da4fb02b
commit f2521e084d

View file

@ -26,8 +26,9 @@ stdenv.mkDerivation rec {
buildInputs = [ libX11 spirv-headers vulkan-headers ];
mesonFlags = [ "-Dappend_libdir_vkbasalt=true" ];
# Include 32bit layer in 64bit build
postInstall = lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux") ''
install -Dm 644 $src/config/vkBasalt.conf $out/share/vkBasalt/vkBasalt.conf
# Include 32bit layer in 64bit build
ln -s ${vkbasalt32}/share/vulkan/implicit_layer.d/vkBasalt.json \
"$out/share/vulkan/implicit_layer.d/vkBasalt32.json"
'';