root: fix environment setup

1) s/envHook/postHook/
2) patch to not set $p that fixes nested ```nix-shell -p root``` calls
This commit is contained in:
Dmitry Kalinkin
2016-10-29 14:47:32 -04:00
parent fa4167c0a1
commit 9434ec5441
3 changed files with 19 additions and 1 deletions
@@ -21,6 +21,9 @@ stdenv.mkDerivation rec {
sha256 = "186i7ni75yvjydy6lpmaplqxfb5z2019bgpbhff1n6zn2qlrff2r";
})
./sw_vers.patch
# this prevents thisroot.sh from setting $p, which interferes with stdenv setup
./thisroot.patch
];
preConfigure = ''