nixpkgs/pkgs/tools/misc/github-copilot-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
814 B
Nix
Raw Normal View History

2023-04-29 05:48:44 +00:00
{ lib, buildNpmPackage, fetchzip }:
buildNpmPackage rec {
pname = "github-copilot-cli";
version = "0.1.33";
src = fetchzip {
url = "https://registry.npmjs.org/@githubnext/${pname}/-/${pname}-${version}.tgz";
hash = "sha256-uTv6Z/AzvINinMiIfaaqRZDCmsAQ7tOE5SpuecpzGug=";
};
npmDepsHash = "sha256-VIg9a63GH246SbmK4Q8CwA2jdaaOwNUXoJkuDVwy5jE=";
postPatch = ''
cp ${./package-lock.json} package-lock.json
'';
dontNpmBuild = true;
meta = with lib; {
description = "A CLI experience for letting GitHub Copilot help you on the command line";
homepage = "https://githubnext.com/projects/copilot-cli/";
2023-09-10 09:42:05 +00:00
license = licenses.unfree; # upstream has no license
2023-04-29 05:48:44 +00:00
maintainers = [ maintainers.malo ];
platforms = platforms.all;
2023-11-27 01:17:53 +00:00
mainProgram = "github-copilot-cli";
2023-04-29 05:48:44 +00:00
};
}