2023-05-24 13:37:59 +00:00
|
|
|
{ lib, buildNpmPackage, fetchzip }:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "github-copilot-cli";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "0.1.36";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://registry.npmjs.org/@githubnext/${pname}/-/${pname}-${version}.tgz";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-7n+7sN61OrqMVGaKll85+HwX7iGG9M/UW5lf2Pd5sRU=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
npmDepsHash = "sha256-h0StxzGbl3ZeOQ4Jy1BgJ5sJ0pAbubMCRsiIOYpU04w=";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
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-10-09 19:29:22 +00:00
|
|
|
license = licenses.unfree; # upstream has no license
|
2023-05-24 13:37:59 +00:00
|
|
|
maintainers = [ maintainers.malo ];
|
|
|
|
platforms = platforms.all;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "github-copilot-cli";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|