mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
30 lines
812 B
Nix
30 lines
812 B
Nix
{ lib, buildNpmPackage, fetchzip }:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "github-copilot-cli";
|
|
version = "0.1.36";
|
|
|
|
src = fetchzip {
|
|
url = "https://registry.npmjs.org/@githubnext/${pname}/-/${pname}-${version}.tgz";
|
|
hash = "sha256-7n+7sN61OrqMVGaKll85+HwX7iGG9M/UW5lf2Pd5sRU=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-h0StxzGbl3ZeOQ4Jy1BgJ5sJ0pAbubMCRsiIOYpU04w=";
|
|
|
|
postPatch = ''
|
|
cp ${./package-lock.json} package-lock.json
|
|
'';
|
|
|
|
dontNpmBuild = true;
|
|
|
|
meta = with lib; {
|
|
description = "CLI experience for letting GitHub Copilot help you on the command line";
|
|
homepage = "https://githubnext.com/projects/copilot-cli/";
|
|
license = licenses.unfree; # upstream has no license
|
|
maintainers = [ maintainers.malo ];
|
|
platforms = platforms.all;
|
|
mainProgram = "github-copilot-cli";
|
|
};
|
|
}
|
|
|