From 7749604e56cd95d3620a8bf800f9c565b90f136e Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Thu, 2 Jul 2026 04:19:33 -0700 Subject: create Vulkan instance Change-Id: I8fdc0c989e97ec872714e755eca4255e3fb0830a Force-Push: yes --- flake.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'flake.nix') 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"; }; }); }; -- cgit 1.4.1