static-nix-shell.mkBash: manually inject PATH and XDG_DATA_DIRS to remove an extra layer of wrapping

This commit is contained in:
2025-07-20 20:31:06 +00:00
parent 8fc16eaf39
commit 5eb620d521

View File

@@ -190,6 +190,14 @@ in rec {
in mkShell ({
inherit pkgsEnv pkgExprs;
interpreter = lib.getExe bash;
postConfigure = ''
shellPreamble='
export PATH=''${PATH:+$PATH:}'"$append_PATH"'
export XDG_DATA_DIRS=''${XDG_DATA_DIRS:+$XDG_DATA_DIRS:}'"$append_XDG_DATA_DIRS"'
'
unset append_PATH
unset append_XDG_DATA_DIRS
'';
} // (removeAttrs attrs [ "bash" "pkgs" ])
);