Unverified Commit 3137334d authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

cargo-make: fix shell completion (#349104)

parents 020d8c50 012d81be
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -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: