summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@irenes.space>2026-07-02 04:19:33 -0700
committerIrene Knapp <ireneista@irenes.space>2026-07-02 14:46:36 -0700
commit7749604e56cd95d3620a8bf800f9c565b90f136e (patch)
tree06db8f7841446cd8d38cbf3ca31f424d8e3477f0 /flake.nix
parent627dc10a30b9ff136fc938570820ff82c7f49489 (diff)
create Vulkan instance
Change-Id: I8fdc0c989e97ec872714e755eca4255e3fb0830a
Force-Push: yes
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix8
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";
       };
     });
   };