Troubleshooting Compilation Issues with remote Github repository

Hi everyone,

I’ve been actively working with NixOS as my primary operating system for the
past few months (but I am still a beginner) and currently, I’m attempting to build a remote GitHub
repository for the program
instant-meshes.

This is my default.nix file:

{ pkgs ? import <nixpkgs> { } }:

pkgs.stdenv.mkDerivation rec {
    name="instant-meshes";
    version="master-7b31608";

    src= pkgs.fetchFromGitHub {
        owner="wjakob";
        repo="instant-meshes";
        rev="7b3160864a2e1025af498c84cfed91cbfb613698";
        sha256="sha256-YciWtppzUCFShXShYSkqrdmdg6ernxgfJ9OhEYGYCT8=";
        fetchSubmodules = true;
      };

    nativeBuildInputs = with pkgs; [
      cmake
    ];
    buildInputs = with pkgs; [
      xorg.libXrandr
      xorg.libXinerama
      xorg.libXcursor
      xorg.libXxf86vm
    ];
  }

However, I’m encountering compilation errors that seem to be related to OpenGL.
Part of the error message is as follows:

In file included from /build/source/ext/nanogui/include/nanogui/opengl.h:34,
                 from /build/source/ext/nanogui/include/nanogui/glutil.h:15,
                 from /build/source/ext/nanogui/src/glutil.cpp:12:
/build/source/ext/nanogui/ext/glfw/include/GLFW/glfw3.h:168:12: fatal error: GL/gl.h: No such file or directory
  168 |   #include <GL/gl.h>
      |            ^~~~~~~~~
compilation terminated.

Additionally, the build process terminates with the following error:

error: boost::bad_format_string: format-string is ill-formed

I suspect that the issue is related to OpenGL, but I’m unsure about how to proceed with debugging or resolving this matter. Any guidance or tips on addressing this issue would be greatly appreciated.