nixpkgs-suyu/pkgs/applications/science/misc/root/setup-hook.sh
Dmitry Kalinkin 9434ec5441
root: fix environment setup
1) s/envHook/postHook/
2) patch to not set $p that fixes nested ```nix-shell -p root``` calls
2016-10-29 14:47:32 -04:00

9 lines
177 B
Bash

thisroot () {
# Workaround thisroot.sh dependency on man
if [ -z "${MANPATH}" ]; then
MANPATH=:
fi
source @out@/bin/thisroot.sh
}
postHooks+=(thisroot)