Help building r-inla package

I’m trying to build an R package from source, specifically the r-inla package found here. I’ve only done this once before, and it went fine. This time, the error message is not very informative. Can someone help me figure out what I’m missing? Alternatively, is there a way to set environment variables in the flake to allow using R’s nativeinstall.packages() function?

I really appreciate any guidance.

The error log shows:

Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/wlrfq2l3h7s8w2hrq24b7yhnana8j9kn-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase">
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: installPhase
@nix { "action": "setPhase", "phase": "installPhase" }
Warning: invalid package '.'
Error: ERROR: no packages specified

Here is the flake (abridged):

{
  description = "A basic flake with a shell";
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/25.05";
  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};
        
        r-inla = pkgs.rPackages.buildRPackage {
          name = "R-INLA";
          src = pkgs.fetchFromGitHub{
            owner = "hrue";
            repo = "r-inla";
            rev = "daf931c988cadd7567c07cae23ff75eb7e6ad02d";
            sha256 = "1ll6azffga02kxqygalj4d03xplj7xb98qjwrdm7v17lznlamvx9";
          };
       propagatedBuildInputs = with pkgs.rPackages; [bslib evaluate Matrix sp INLAspacetime fmesher jsonlite knitr stringr tinytex yaml xfun];
      };
      in
      {
        devShells.default = pkgs.mkShell {
          nativeBuildInputs = [ pkgs.bashInteractive ];
          buildInputs = with pkgs; [
            R
            chromium
            pandoc
            r-inla
            texlive.combined.scheme-full
            rstudio
            (with rPackages; [
               a bunch of packages
            ])
          ];
        };
      }
    );
}