So my nixos uses wayland and hence I use swaywm, so I wanted to compile wlroots for myself, but when I try to compile it, I get this error
meson.build:100:0: ERROR: Dependency "gbm" not found, tried pkgconfig and cmake
this is my shell.nix
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [ pkgconfig meson ninja cmake ];
buildInputs = with pkgs; [
pixman
udev
egl-wayland
libdrm
wayland
wayland-scanner
wayland-protocols
libxkbcommon
wlroots
];
}
So I tried to search on how to install gbm, but found no solutions, How do I resolve this dependency?