Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
39 lines
1.0 KiB
Nix
39 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchzip,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildNpmPackage (finalAttrs: {
|
|
pname = "github-copilot-cli";
|
|
version = "0.0.328";
|
|
|
|
src = fetchzip {
|
|
url = "https://registry.npmjs.org/@github/copilot/-/copilot-${finalAttrs.version}.tgz";
|
|
hash = "sha256-9oTaVjvwyS8KY8N5kUEiAs+l6vEd/BZ0AGJI0p9Jie0=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-WK6t3IW4uF+MDu7Y5GRinbm8iDcYB8RhJ15GE9VBcjQ=";
|
|
|
|
postPatch = ''
|
|
cp ${./package-lock.json} package-lock.json
|
|
'';
|
|
|
|
dontNpmBuild = true;
|
|
|
|
passthru.updateScript = nix-update-script { extraArgs = [ "--generate-lockfile" ]; };
|
|
|
|
meta = {
|
|
description = "GitHub Copilot CLI brings the power of Copilot coding agent directly to your terminal";
|
|
homepage = "https://github.com/github/copilot-cli";
|
|
changelog = "https://github.com/github/copilot-cli/releases/tag/v${finalAttrs.version}";
|
|
downloadPage = "https://www.npmjs.com/package/@github/copilot";
|
|
license = lib.licenses.unfree;
|
|
maintainers = with lib.maintainers; [
|
|
dbreyfogle
|
|
];
|
|
mainProgram = "copilot";
|
|
};
|
|
})
|