Removed a bunch of shit and will just use dev shells, here's a list of
resources as a reference for future me: https://ziggit.dev/t/windows-system-library-include-issues-with-build-zig/3150 https://discourse.nixos.org/t/how-can-i-resolve-this-libwayland-client-glfw-wayland-error/33824/6 https://discourse.nixos.org/t/raylib-games-failed-to-load-libwayland-client/45722e1b4b26f34/default.nix (L11)7f266be470/pkgs/by-name/ee/eepers/package.nixhttps://discourse.nixos.org/t/running-a-rust-application-that-needs-egl-with-shell-nix/33245 https://discourse.nixos.org/t/cannot-find-library-on-statically-linked-builds/36169/4 https://nixos.wiki/wiki/Cross_Compiling83aa7b8e66https://github.com/quot/Zig-Raylib-Flake-Template/tree/main (works with zig13 only) https://github.com/nix-community/templates/blob/main/zig/flake.nix https://www.reddit.com/r/Zig/comments/1g3lwh0/using_raylib_with_zig_how/ https://github.com/Miou-zora/Raylib-Zig-Nix/blob/main/build.zig.zon (doesn't work) https://github.com/google-deepmind/pysc2/issues/207 https://github.com/ziglang/zig/issues/16733 https://github.com/ziglang/zig/issues/16733#issuecomment-1818185713 https://github.com/ziglang/zig/issues/13177 https://github.com/bevyengine/bevy/blob/latest/docs/linux_dependencies.md This last one is bevy docs but copying the nix-shell andd adding wayland-scanner seems to also work for zig raylib
This commit is contained in:
@@ -117,48 +117,12 @@
|
||||
clang-tools
|
||||
ghostty
|
||||
glibcLocales
|
||||
|
||||
wayland-scanner
|
||||
raylib
|
||||
egl-wayland
|
||||
libxkbcommon
|
||||
kdePackages.wayland
|
||||
kdePackages.kwayland
|
||||
glfw-wayland
|
||||
|
||||
libGL
|
||||
xorg.libX11
|
||||
xorg.libXcursor
|
||||
xorg.libXrandr
|
||||
xorg.libXinerama
|
||||
xorg.libXi
|
||||
|
||||
udev
|
||||
alsa-lib
|
||||
vulkan-loader
|
||||
# libxkbcommon
|
||||
wayland
|
||||
];
|
||||
|
||||
# Enable dynamic linking of applications that are not in nixpkgs (for vim LSPs for example).
|
||||
programs.nix-ld.enable = true;
|
||||
programs.nix-ld.libraries = with pkgs; [
|
||||
stdenv.cc.cc
|
||||
|
||||
kdePackages.wayland
|
||||
kdePackages.kwayland
|
||||
glfw-wayland
|
||||
wayland-scanner
|
||||
raylib
|
||||
wayland
|
||||
egl-wayland
|
||||
libxkbcommon
|
||||
libGL
|
||||
xorg.libX11
|
||||
xorg.libXcursor
|
||||
xorg.libXrandr
|
||||
xorg.libXinerama
|
||||
xorg.libXi
|
||||
];
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
|
||||
@@ -97,7 +97,6 @@
|
||||
hyperfine
|
||||
nh
|
||||
wget
|
||||
git-lfs
|
||||
];
|
||||
|
||||
# For nixd LSP to recognize what nixpkgs version I use
|
||||
|
||||
Reference in New Issue
Block a user