Files
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

70 lines
1.7 KiB
Nix

{
lib,
stdenvNoCC,
makeWrapper,
fetchzip,
nix-update-script,
nodejs,
testers,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "copilot-language-server";
version = "1.378.0";
src = fetchzip {
url = "https://github.com/github/copilot-language-server-release/releases/download/${finalAttrs.version}/copilot-language-server-js-${finalAttrs.version}.zip";
hash = "sha256-bue5z4bGv1m/OiCGX0VIEs4X8UNgKC1kOb7oouBDfcs=";
stripRoot = false;
};
nativeBuildInputs = [
makeWrapper
];
buildInputs = [
nodejs
];
installPhase = ''
runHook preInstall
mkdir -p $out/share/copilot-language-server
cp -r ./* $out/share/copilot-language-server/
makeWrapper ${lib.getExe nodejs} $out/bin/copilot-language-server \
--add-flags $out/share/copilot-language-server/main.js
runHook postInstall
'';
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
};
meta = {
description = "Use GitHub Copilot with any editor or IDE via the Language Server Protocol";
homepage = "https://github.com/features/copilot";
license = {
deprecated = false;
free = false;
fullName = "GitHub Copilot Product Specific Terms";
redistributable = false;
shortName = "GitHub Copilot License";
url = "https://github.com/customer-terms/github-copilot-product-specific-terms";
};
mainProgram = "copilot-language-server";
platforms = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
maintainers = with lib.maintainers; [
arunoruto
wattmto
];
};
})