Skip to content

Commit

Permalink
use copilot 1.4.5.4049
Browse files Browse the repository at this point in the history
  • Loading branch information
MayNiklas committed Dec 23, 2023
1 parent 6bf5bc8 commit 88e583c
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions packages/pycharm-fix/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
{ writeShellScriptBin, nix, github-copilot-intellij-agent, ... }:
{ writeShellScriptBin, nix, github-copilot-intellij-agent, fetchurl, ... }:
let
my-github-copilot-intellij-agent = github-copilot-intellij-agent.overrideAttrs (oldAttrs: rec {
pname = "github-copilot-intellij-agent";
version = "1.4.5.4049";
src = fetchurl {
name = "${pname}-${version}-plugin.zip";
url = "https://plugins.jetbrains.com/plugin/download?updateId=454005";
hash = "sha256-ibu3OcmtyLHuumhJQ6QipsNEIdEhvLUS7sb3xmnaR0U=";
};
});
in
writeShellScriptBin "pycharm-fix" ''
for f in ~/.local/share/JetBrains/*; do
if [[ $f == *"PyCharm"* ]]; then
${nix}/bin/nix-store --add-root $f/copilot-agent-linux -r ${github-copilot-intellij-agent}/bin/copilot-agent
echo "Created link from $f/copilot-agent-linux to ${github-copilot-intellij-agent}/bin/copilot-agent..."
${nix}/bin/nix-store --add-root $f/copilot-agent-linux -r ${my-github-copilot-intellij-agent}/bin/copilot-agent
echo "Created link from $f/copilot-agent-linux to ${my-github-copilot-intellij-agent}/bin/copilot-agent..."
fi
done
''

0 comments on commit 88e583c

Please sign in to comment.