Install tools in a local output directory.
This commit is contained in:
parent
9a4299e5a1
commit
d12895184b
|
@ -3,4 +3,5 @@
|
||||||
coverage/
|
coverage/
|
||||||
debug/
|
debug/
|
||||||
hooked-book/book/
|
hooked-book/book/
|
||||||
|
outputs/
|
||||||
target/
|
target/
|
||||||
|
|
|
@ -15,9 +15,14 @@ mkShell rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
|
# Add the outputs directory to PATH where local tools will be installed.
|
||||||
|
PATH="$PATH:$out/bin"
|
||||||
|
|
||||||
# If Hooked isn't installed, use cargo to install the local version of it.
|
# If Hooked isn't installed, use cargo to install the local version of it.
|
||||||
if ! [[ -x "$(command -v hooked)" ]]; then
|
if ! [[ -x "$(command -v hooked)" ]]; then
|
||||||
cargo install --path hooked-cli
|
cargo install --path hooked-cli --root $out
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
hooked install
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue