Unverified Commit 76069daf authored by florian-sanders-cc's avatar florian-sanders-cc Committed by GitHub
Browse files

clever-tools: missing argument for autocomplete scripts (#326039)

parent 3341849c
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
, fetchFromGitHub
, nodejs_18
, installShellFiles
, stdenv
}:

buildNpmPackage rec {
@@ -25,10 +26,10 @@ buildNpmPackage rec {

  nativeBuildInputs = [ installShellFiles ];

  postInstall = ''
  postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
    installShellCompletion --cmd clever \
      --bash <($out/bin/clever --bash-autocomplete-script) \
      --zsh <($out/bin/clever --zsh-autocomplete-script)
      --bash <($out/bin/clever --bash-autocomplete-script $out/bin/clever) \
      --zsh <($out/bin/clever --zsh-autocomplete-script $out/bin/clever)
    rm $out/bin/install-clever-completion
    rm $out/bin/uninstall-clever-completion
  '';