Skip to content

Commit

Permalink
cargo-make: fix shell completion
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Oct 16, 2024
1 parent 967335c commit 012d81b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkgs/by-name/ca/cargo-make/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, rustPlatform
, fetchFromGitHub
, pkg-config
, installShellFiles
, bzip2
, openssl
, stdenv
Expand All @@ -21,7 +22,10 @@ rustPlatform.buildRustPackage rec {

cargoHash = "sha256-RjsYrFbS/OiMQKTiPshGcBI9KF75Z5stn2HaB6mniZE=";

nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [
pkg-config
installShellFiles
];

buildInputs = [
bzip2
Expand All @@ -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:
Expand Down

0 comments on commit 012d81b

Please sign in to comment.