move LD_LIBRARY_PATH=./target from flake to example makefile
This commit is contained in:
parent
b74186b130
commit
f95c47d7f7
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue