From eb389d6199b7ff58f9ae224bdccba63a6c3b5e2f Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 30 Jan 2025 14:04:04 +0200 Subject: [PATCH] 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/45722 https://github.com/Nydragon/cg-final-project/blob/e1b4b26f34161d83887a5815007c7d3615e098c1/default.nix#L11 https://github.com/NixOS/nixpkgs/blob/7f266be470ae071d1480755428e109988946e3b2/pkgs/by-name/ee/eepers/package.nix https://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_Compiling https://code.ffreling.com/fabs/doggo/commit/83aa7b8e668be4155de6ecb83f1fad292e2c0442?style=split&whitespace=ignore-change&show-outdated= https://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 --- hosts/kyren-laptop/configuration.nix | 36 ---------------------------- hosts/kyren-laptop/home.nix | 1 - 2 files changed, 37 deletions(-) diff --git a/hosts/kyren-laptop/configuration.nix b/hosts/kyren-laptop/configuration.nix index ff6ae7a..82cc5b3 100644 --- a/hosts/kyren-laptop/configuration.nix +++ b/hosts/kyren-laptop/configuration.nix @@ -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 diff --git a/hosts/kyren-laptop/home.nix b/hosts/kyren-laptop/home.nix index 8c5c3f1..c6a452d 100644 --- a/hosts/kyren-laptop/home.nix +++ b/hosts/kyren-laptop/home.nix @@ -97,7 +97,6 @@ hyperfine nh wget - git-lfs ]; # For nixd LSP to recognize what nixpkgs version I use