Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I31625305400ea72112babe3202561ebe6a6a6964
This commit is contained in:
parent
0996c763ef
commit
502636ff69
1 changed files with 3 additions and 8 deletions
|
|
@ -17,8 +17,8 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
root = s;
|
root = s;
|
||||||
fileset = fs.unions (map (dir: (s + /${dir})) [
|
fileset = fs.unions (map (dir: (s + /${dir})) [
|
||||||
".cargo"
|
".cargo"
|
||||||
|
"crates"
|
||||||
"eh"
|
"eh"
|
||||||
"xtask"
|
|
||||||
"Cargo.toml"
|
"Cargo.toml"
|
||||||
"Cargo.lock"
|
"Cargo.lock"
|
||||||
]);
|
]);
|
||||||
|
|
@ -44,21 +44,16 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# Install required files with the 'dist' task
|
# Install required files with the 'dist' task
|
||||||
$out/bin/xtask multicall \
|
cargo xtask multicall \
|
||||||
--bin-dir $out/bin \
|
--bin-dir $out/bin \
|
||||||
--main-binary $out/bin/eh
|
--main-binary $out/bin/eh
|
||||||
|
|
||||||
# Generate shell completions and install them.
|
# Generate shell completions and install them.
|
||||||
for shell in bash zsh fish; do
|
for shell in bash zsh fish; do
|
||||||
$out/bin/xtask completions $shell
|
cargo xtask completions $shell
|
||||||
done
|
done
|
||||||
|
|
||||||
installShellCompletion completions/*
|
installShellCompletion completions/*
|
||||||
|
|
||||||
# The xtask output has been built as a part of the build phase. If
|
|
||||||
# we don't remove it, it'll be linked in $out/bin alongside the actual
|
|
||||||
# binary and populate $PATH with a dedicated 'xtask' command. Remove.
|
|
||||||
rm -rf $out/bin/xtask
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue