move LD_LIBRARY_PATH=./target from flake to example makefile

This commit is contained in:
jacekpoz 2024-08-13 00:50:40 +02:00
parent b74186b130
commit f95c47d7f7
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ else
endif endif
example-%: $(BIN)/$(EXAMPLE_DIR)/% example-%: $(BIN)/$(EXAMPLE_DIR)/%
$(BIN)/$(EXAMPLE_DIR)/$(EXAMPLE) LD_LIBRARY_PATH=$(BIN) $(BIN)/$(EXAMPLE_DIR)/$(EXAMPLE)
$(BIN)/%: %.c $(BIN)/%: %.c
@mkdir -p $(@D) @mkdir -p $(@D)

View file

@ -29,7 +29,7 @@
inputsFrom = [ self.packages.${system}.default ]; inputsFrom = [ self.packages.${system}.default ];
# https://discourse.nixos.org/t/setting-up-vulkan-for-development/11715/3 # https://discourse.nixos.org/t/setting-up-vulkan-for-development/11715/3
LD_LIBRARY_PATH = with pkgs; "${glfw}/lib:${vulkan-loader}/lib:${vulkan-validation-layers}/lib:./target"; LD_LIBRARY_PATH = with pkgs; "${glfw}/lib:${vulkan-loader}/lib:${vulkan-validation-layers}/lib";
VULKAN_SDK = with pkgs; "${vulkan-headers}"; VULKAN_SDK = with pkgs; "${vulkan-headers}";
VK_LAYER_PATH = with pkgs; "${vulkan-validation-layers}/share/vulkan/explicit_layer.d"; VK_LAYER_PATH = with pkgs; "${vulkan-validation-layers}/share/vulkan/explicit_layer.d";
PTK_LOG_LEVEL = "debug"; PTK_LOG_LEVEL = "debug";