Commit e9f1eb1c authored by langsjo's avatar langsjo
Browse files

github-copilot-cli: add interactive bash to path

parent d860defc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
  autoPatchelfHook,
  fetchurl,
  makeBinaryWrapper,
  bash,
  versionCheckHook,
}:

@@ -40,7 +41,8 @@ stdenv.mkDerivation (finalAttrs: {
  postInstall = ''
    # Filename must explictly be "copilot" for internal self-referencing
    makeWrapper $out/libexec/copilot $out/bin/copilot \
      --add-flags "--no-auto-update"
      --add-flags "--no-auto-update" \
      --prefix PATH : "${lib.makeBinPath [ bash ]}"
  '';

  nativeInstallCheckInputs = [ versionCheckHook ];