Error message from `dirname` during `nixos-install`

While running nixos-install, I get the following messages:

building '/nix/store/9d7pc5ghcnz6yn9k43lhfpnfhvfg573g-unit--.slice.drv'...
dirname: invalid option -- '.'
Try 'dirname --help' for more information.

Should this be reported as a bug? What are the consequences of the indicated problem?

This should be mostly harmless unless the created directory is required. Nevertheless I proposed a fix in systemd-lib: fix building -.slice (root slice) by SuperSandro2000 · Pull Request #222110 · NixOS/nixpkgs · GitHub