Sorry to revive a “dead thread”, but there’s now two PRs related to this:
Adding /share folders to XDG_DATA_DIRS: https://github.com/NixOS/nixpkgs/pull/103501
Adding separate sourceInputDerivationHook for mkShell: sourceInputCompletionHook: init by jonringer · Pull Request #104225 · NixOS/nixpkgs · GitHub
2 Likes