diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/flake.nix b/flake.nix index 4e03888..5a6b93f 100644 --- a/flake.nix +++ b/flake.nix @@ -27,7 +27,7 @@ libxkbcommon # mesa # wayland - # vulkan-loader + vulkan-loader ]; in { packages = forAllSystems (system: let pkgs = nixpkgsFor.${system}; in { @@ -39,7 +39,9 @@ nativeBuildInputs = with pkgs; [ autoPatchelfHook ]; }).overrideAttrs { preFixup = '' - patchelf --add-needed libxkbcommon-x11.so $out/bin/surreality + patchelf --add-needed libxkbcommon-x11.so \ + --add-needed libvulkan.so.1 \ + $out/bin/surreality ''; }; }); @@ -54,7 +56,7 @@ # This makes cargo run work; mind that you don't let it mask a # problem with the nix build. - LD_LIBRARY_PATH = "${pkgs.libxkbcommon}/lib"; + LD_LIBRARY_PATH = "${pkgs.libxkbcommon}/lib:${pkgs.vulkan-loader}/lib"; }; }); }; |