Files
nixos-dotfiles/modules/home-manager/programs/copilot-fix.nix
BalrajSinghGidda de4459ff54 nnanana
2026-03-20 21:48:22 +05:30

12 lines
323 B
Nix

{ pkgs, ... }:
pkgs.github-copilot-cli.overrideAttrs (old: {
postFixup = (old.postFixup or "") + ''
if [ -f "$out/bin/.copilot-wrapped" ]; then
echo "Patching copilot wrapper to remove --no-warnings..."
substituteInPlace "$out/bin/.copilot-wrapped" \
--replace "--no-warnings" ""
fi
'';
})