mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
veryl: add shell completions
This commit is contained in:
parent
4cbccd4923
commit
35325ecea9
@ -3,6 +3,7 @@
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
installShellFiles,
|
||||
dbus,
|
||||
stdenv,
|
||||
darwin,
|
||||
@ -24,6 +25,7 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
buildInputs =
|
||||
@ -37,6 +39,13 @@ rustPlatform.buildRustPackage rec {
|
||||
darwin.apple_sdk.frameworks.SystemConfiguration
|
||||
];
|
||||
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd veryl \
|
||||
--bash <($out/bin/veryl metadata --completion bash) \
|
||||
--fish <($out/bin/veryl metadata --completion fish) \
|
||||
--zsh <($out/bin/veryl metadata --completion zsh)
|
||||
'';
|
||||
|
||||
checkFlags = [
|
||||
# takes over an hour
|
||||
"--skip=tests::progress"
|
||||
@ -53,7 +62,6 @@ rustPlatform.buildRustPackage rec {
|
||||
"--skip=analyzer::test_68_std"
|
||||
"--skip=emitter::test_25_dependency"
|
||||
"--skip=emitter::test_68_std"
|
||||
|
||||
];
|
||||
|
||||
meta = {
|
||||
|
Loading…
Reference in New Issue
Block a user