mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
luaPackages.busted: install shell completion via installShellCompletion
This commit is contained in:
parent
dd9df750ba
commit
75a0709f67
1 changed files with 6 additions and 2 deletions
|
@ -15,13 +15,17 @@ with prev;
|
|||
});
|
||||
|
||||
busted = prev.busted.overrideAttrs(oa: {
|
||||
nativeBuildInputs = [
|
||||
pkgs.installShellFiles
|
||||
];
|
||||
postConfigure = ''
|
||||
substituteInPlace ''${rockspecFilename} \
|
||||
--replace "'lua_cliargs = 3.0-1'," "'lua_cliargs >= 3.0-1',"
|
||||
'';
|
||||
postInstall = ''
|
||||
install -D completions/zsh/_busted $out/share/zsh/site-functions/_busted
|
||||
install -D completions/bash/busted.bash $out/share/bash-completion/completions/busted
|
||||
installShellCompletion --cmd busted \
|
||||
--zsh completions/zsh/_busted \
|
||||
--bash completions/bash/busted.bash
|
||||
'';
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue