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

This commit is contained in:
Pol Dellaiera
2026-04-12 15:49:12 +00:00
committed by GitHub
@@ -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 ];