cargo-make: fix shell completion (#349104)

This commit is contained in:
Aleksana 2024-10-17 11:57:01 +08:00 committed by GitHub
commit 3137334d75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,7 @@
, rustPlatform
, fetchFromGitHub
, pkg-config
, installShellFiles
, bzip2
, openssl
, stdenv
@ -21,7 +22,10 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-RjsYrFbS/OiMQKTiPshGcBI9KF75Z5stn2HaB6mniZE=";
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [
pkg-config
installShellFiles
];
buildInputs = [
bzip2
@ -30,6 +34,10 @@ rustPlatform.buildRustPackage rec {
darwin.apple_sdk.frameworks.SystemConfiguration
];
postInstall = ''
installShellCompletion extra/shell/*.bash
'';
# Some tests fail because they need network access.
# However, Travis ensures a proper build.
# See also: