Skip to content

Commit ce7dbe3

Browse files
syntacticallysimongdavies
authored andcommitted
[nix] Switch to using postHook instead of shellHook to override PATH
This makes it work better with `nix print-dev-env` and friends. Signed-off-by: Simon Davies <[email protected]>
1 parent b7c64cc commit ce7dbe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
RUST_NIGHTLY = "${toolchains.nightly.rust}";
141141
# Set this through shellHook rather than nativeBuildInputs to be
142142
# really sure that it overrides the real cargo.
143-
shellHook = ''
143+
postHook = ''
144144
export PATH="${fake-rustup}/bin:$PATH"
145145
'';
146146
}).overrideAttrs(oA: {

0 commit comments

Comments
 (0)