mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-27 06:25:23 +00:00
Merge pull request #259977 from sudosubin/feature/rye-completion
rye: add completion
This commit is contained in:
commit
1b6da39f1b
@ -1,6 +1,7 @@
|
||||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, pkg-config
|
||||
, openssl
|
||||
, stdenv
|
||||
@ -31,7 +32,7 @@ rustPlatform.buildRustPackage rec {
|
||||
OPENSSL_NO_VENDOR = 1;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
nativeBuildInputs = [ installShellFiles pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
@ -41,6 +42,13 @@ rustPlatform.buildRustPackage rec {
|
||||
SystemConfiguration
|
||||
];
|
||||
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd rye \
|
||||
--bash <($out/bin/rye self completion -s bash) \
|
||||
--fish <($out/bin/rye self completion -s fish) \
|
||||
--zsh <($out/bin/rye self completion -s zsh)
|
||||
'';
|
||||
|
||||
checkFlags = [
|
||||
"--skip=utils::test_is_inside_git_work_tree"
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user