jetbrains.plugins: github-copilot: Use correct agent path

This commit is contained in:
hacker1024
2024-08-23 08:36:06 -06:00
committed by James Ward
parent b66e43f26c
commit d4f311a338
@@ -38,7 +38,10 @@
# Github Copilot
# Modified version of https://github.com/ktor/nixos/commit/35f4071faab696b2a4d86643726c9dd3e4293964
buildPhase = ''
agent="copilot-agent/bin/copilot-agent-linux"
agent='copilot-agent/native/${lib.toLower stdenv.hostPlatform.uname.system}${{
x86_64 = "-x64";
aarch64 = "-arm64";
}.${stdenv.hostPlatform.uname.processor} or ""}/copilot-language-server'
orig_size=$(stat --printf=%s $agent)
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $agent
patchelf --set-rpath ${lib.makeLibraryPath [glibc gcc-unwrapped]} $agent