I am trying to learn graphics in Rust. I started with pixels, with the minimal-winit
example. I am running this in SwayWM. This is the shell.nix:
let
pkgs = import <nixpkgs> { };
in
pkgs.mkShell {
name = "pixels-test";
nativeBuildInputs = with pkgs; [
pkg-config
];
buildInputs = with pkgs; [
fontconfig
wayland
xorg.libX11
xorg.libXcursor
xorg.libXrandr
xorg.libXi
cmake
];
}
When running cargo run
in nix-shell, I get this error:
Error: AdapterNotFound
How can I fix this?