github-copilot-cli: 1.0.26 -> 1.0.61

Fixes #520490, fixes #530877

Assisted-by: GitHub Copilot (GPT-5.4)
Co-Authored-By: Copilot <198982749+Copilot@users.noreply.github.com>
Co-Authored-By: Chaxiraxi <58859587+Chaxiraxi@users.noreply.github.com>
This commit is contained in:
Adam Dinwoodie
2026-07-20 20:12:17 +01:00
co-authored by Copilot Chaxiraxi
parent 9ae611a455
commit f322c396a7
+11 -2
View File
@@ -15,7 +15,7 @@
stdenv.mkDerivation (finalAttrs: {
pname = "github-copilot-cli";
version = "1.0.26";
version = "1.0.61";
# GitHub provide platform-specific SEA binaries as well as a "universal"
# package. Use the universal package as it gives us a bit more flexibility
@@ -23,7 +23,7 @@ stdenv.mkDerivation (finalAttrs: {
# about how paths should be set up which don't reliably hold when using Nix.
src = fetchurl {
url = "https://github.com/github/copilot-cli/releases/download/v${finalAttrs.version}/github-copilot-${finalAttrs.version}.tgz";
hash = "sha256-zNO0clQRfgw6CX9K8NaJXsoOhhNjBfK7KAr0AoL7Oqo=";
hash = "sha256-8Lks8lHa5XF9ZrC+fU/9VlzD1W32MbRZ7PZtL5YWLTA=";
};
nativeBuildInputs = [
@@ -58,6 +58,10 @@ stdenv.mkDerivation (finalAttrs: {
'';
postInstall = ''
# Upstream bundles linuxmusl prebuilds in the universal tarball; they are
# not needed on glibc systems and make autoPatchelf fail on musl libc deps.
find "$out"/lib/github-copilot-cli -depth -path '*/linuxmusl-*' -exec rm -rf '{}' +
makeWrapper ${nodejs}/bin/node "$out"/bin/copilot \
--add-flag "$out"/lib/github-copilot-cli/index.js \
--add-flag --no-auto-update \
@@ -82,6 +86,11 @@ stdenv.mkDerivation (finalAttrs: {
homepage = "https://github.com/github/copilot-cli";
changelog = "https://github.com/github/copilot-cli/releases/tag/v${finalAttrs.version}";
license = lib.licenses.unfree;
sourceProvenance = with lib.sourceTypes; [
binaryNativeCode # including contents of the prebuild directory
binaryBytecode # including WASM files
obfuscatedCode # including minified JavaScript
];
maintainers = with lib.maintainers; [
dbreyfogle
me-and