Unverified Commit 97eda0cf authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

github-copilot-cli: fix shell errors inside `nix develop` environments (#509133)

parents db45193f e9f1eb1c
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 ];