From f322c396a7210356a3b9cbccc9864ad528c06abc Mon Sep 17 00:00:00 2001 From: Adam Dinwoodie Date: Mon, 20 Jul 2026 20:11:03 +0100 Subject: [PATCH] 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> --- pkgs/by-name/gi/github-copilot-cli/package.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/gi/github-copilot-cli/package.nix b/pkgs/by-name/gi/github-copilot-cli/package.nix index b71c9fd72969..9d6a28b0e490 100644 --- a/pkgs/by-name/gi/github-copilot-cli/package.nix +++ b/pkgs/by-name/gi/github-copilot-cli/package.nix @@ -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