mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 07:04:28 +00:00
9434ec5441
1) s/envHook/postHook/ 2) patch to not set $p that fixes nested ```nix-shell -p root``` calls
10 lines
177 B
Bash
10 lines
177 B
Bash
thisroot () {
|
|
# Workaround thisroot.sh dependency on man
|
|
if [ -z "${MANPATH}" ]; then
|
|
MANPATH=:
|
|
fi
|
|
source @out@/bin/thisroot.sh
|
|
}
|
|
|
|
postHooks+=(thisroot)
|