Install tools in a local output directory.
This commit is contained in:
parent
9a4299e5a1
commit
d12895184b
|
@ -3,4 +3,5 @@
|
|||
coverage/
|
||||
debug/
|
||||
hooked-book/book/
|
||||
outputs/
|
||||
target/
|
||||
|
|
|
@ -15,9 +15,14 @@ mkShell rec {
|
|||
];
|
||||
|
||||
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 ! [[ -x "$(command -v hooked)" ]]; then
|
||||
cargo install --path hooked-cli
|
||||
cargo install --path hooked-cli --root $out
|
||||
fi
|
||||
|
||||
hooked install
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue