Rstudio failing to launch

Hello,

As of today, I am unable to launch rstudio. I get the error

❯ rstudio
[10077:0706/092223.868431:ERROR:ui/gl/init/gl_factory.cc:103] Requested GL implementation (gl=none,angle=none) not found in allowed implementations: [(gl=egl-angle,angle=default)].
[10077:0706/092223.869340:ERROR:components/viz/service/main/viz_main_impl.cc:183] Exiting GPU process due to errors during initialization
/bin/sh: line 1: /usr/bin/which: No such file or directory
Segmentation fault (core dumped)

when using this flake

{
  description = "A basic flake with a shell for R";
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
  inputs.systems.url = "github:nix-systems/default";
  inputs.flake-utils = {
    url = "github:numtide/flake-utils";
    inputs.systems.follows = "systems";
  };

  outputs =
    { nixpkgs, flake-utils, ... }:
    flake-utils.lib.eachDefaultSystem (
      system:
      let
        pkgs = nixpkgs.legacyPackages.${system};
      in
      {
        devShells.default = pkgs.mkShell {
          nativeBuildInputs = [ pkgs.bashInteractive ];
          buildInputs = with pkgs; [
            R
            quarto
            chromium
            pandoc
            texlive.combined.scheme-full
            rstudio
            (with rPackages; [
              quarto
              pagedown
              tidyverse
              pryr
              ropenblas
              gt
              janitor
              lobstr
              memoise
              DiagrammeR
              rio
              feather
              WDI
              #png
              #palmerpenguins
              styler
              profvis
              microbenchmark
              benchmarkme
              Rcpp
              swirl
              bookdown
            ])
          ];
        };
      }
    );
}

Any help would be appreciated, thank you.

I guess you’re starting it from the default devShell?
What happens if you throw which in the list of packages as well?
Seems like something is missing it.

I think it has something to do with the recent plasma upgrade. I rolled back to Saturday’s nixpkgs and it works again.

It’s worked fine until today, so why would the flake be suddenly invalid? I use direnv, so I enter the devshell when I enter the directory, and rstudio is not installed system-wide.