Hello!
I have been trying to set up my Rust development environment and when trying to build the glfw package I got that dependency error Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB)
with the whole trace being:
--- stderr
CMake Error at /nix/store/b893ksdqbdpzrdcmms59aq4fgqmh083w-cmake-3.29.2/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB)
Call Stack (most recent call first):
/nix/store/b893ksdqbdpzrdcmms59aq4fgqmh083w-cmake-3.29.2/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
/nix/store/b893ksdqbdpzrdcmms59aq4fgqmh083w-cmake-3.29.2/share/cmake-3.29/Modules/FindX11.cmake:676 (find_package_handle_standard_args)
CMakeLists.txt:211 (find_package)
thread 'main' panicked at /home/jtv/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cmake-0.1.51/src/lib.rs:1100:5:
command did not execute successfully, got: exit status: 1
build script failed, must exit now
Now I have already tried configuring my shell with the proper dependencies like this:
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = [
pkg-config
xorg.libX11
xorg.libXrandr
xorg.libXinerama
xorg.libXcursor
xorg.libXi
opengl
];
}
but that didn’t seem to do the job and I can’t seem to find any useful information relating to this problem online so help would be greatly appreciated and thanks in advance!