static-nix-shell.mkBash: manually inject PATH and XDG_DATA_DIRS to remove an extra layer of wrapping
This commit is contained in:
@@ -190,6 +190,14 @@ in rec {
|
|||||||
in mkShell ({
|
in mkShell ({
|
||||||
inherit pkgsEnv pkgExprs;
|
inherit pkgsEnv pkgExprs;
|
||||||
interpreter = lib.getExe bash;
|
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" ])
|
} // (removeAttrs attrs [ "bash" "pkgs" ])
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user