cargo-make: fix shell completion

This commit is contained in:
Kenichi Kamiya 2024-10-17 02:49:23 +09:00
parent 967335c0e2
commit 012d81be69
No known key found for this signature in database
GPG Key ID: 9BE4016A38165CCB

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: