Can't build raylib-zig on NixOS

I am trying to compile a zig appllication with raylib-zig bindings on NixOS wayland (KDE)
I am using these bindings on the 5.6-dev branch:

I am also using their build.zig to compile the project,
my zig versioni s 0.14.0-dev.2802+257054a14

Compiling gives the following errors

error: error: unable to find dynamic system library 'EGL' using strategy 'paths_first'. searched paths:
  /lib64/libEGL.so
  /lib64/libEGL.a
  /lib/libEGL.so
  /lib/libEGL.a
error: unable to find dynamic system library 'wayland-client' using strategy 'paths_first'. searched paths:
  /lib64/libwayland-client.so
  /lib64/libwayland-client.a
  /lib/libwayland-client.so
  /lib/libwayland-client.a
error: unable to find dynamic system library 'xkbcommon' using strategy 'paths_first'. searched paths:
  /lib64/libxkbcommon.so
  /lib64/libxkbcommon.a
  /lib/libxkbcommon.so
  /lib/libxkbcommon.a

Using GitHub - quot/Zig-Raylib-Flake-Template: Nix flake template for Zig Raylib development with dependencies with zig 13 seems to work but I need to use zig master as I will be using other libraries that need zig master to work

Things I tried:
putting these packages in both system packages and programs.nix-ld.libraries

    wayland-scanner
    raylib
    egl-wayland
    libxkbcommon
    kdePackages.wayland
    kdePackages.kwayland
    glfw-wayland

    libGL
    xorg.libX11
    xorg.libXcursor
    xorg.libXrandr
    xorg.libXinerama
    xorg.libXi
1 Like