-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add python3 options #3
base: main
Are you sure you want to change the base?
feat: add python3 options #3
Conversation
Ironically the plugin you mention as impetus for this change was rewritten in pure lua :D Regardless, this seems reasonable. When you are happy with it, take it out of draft and I can merge. |
Here is a working spec for CopilotChat.nvim; copilot-chat = {
src = sources."CopilotChat.nvim";
config = true;
dependencies = {
copilot = {
src = sources."copilot.lua";
config = true;
};
tiktoken = {
package = pkgs.rustPlatform.buildRustPackage rec {
pname = "lua-tiktoken";
version = "0.2.1";
src = pkgs.fetchFromGitHub {
owner = "gptlang";
repo = "lua-tiktoken";
rev = version;
hash = "sha256-drSAVGHrdDdaWUEAfCE/2ZCI2nuffpbupO+TVWv/l4Y=";
};
cargoHash = "sha256-mMAUgq8Th6Vo3KCisDFnQn2knyL5qe0rAdw5OJUQ7ms=";
buildFeatures = ["luajit"];
};
};
};
}; |
I also noticed this while going back to my neovim.drv branch, what timing. 😅
I already tried it on my old branch, and everything seems to work. Also, would it make sense to have a |
I think just
I'd rather not add options unless they demonstrably add value, and this does not seem like it does. |
I don't think I understand what exactly you mean here. Do we need the full I may be thinking about this wrongly, but couldn't we have a plugin spec copilotchat = {
src = srcs.copilotchat;
config = true;
pythonPackages = ps: with ps; [prompt-toolkit python-dotenv requests tiktoken];
}; I haven't had a reason to use |
Yes this is exactly what I meant. Same as Really what should happen is we should use propagatedBuildInputs to handle all of this, but that is neither here nor there. |
fyi I probably won't have time to revisit this until middle/late next week |
That's alright, I'm in no rush to get this added for my own setup; I also didn't have time in the last few days. |
Mostly lifted from home-manager.
Occured to me as a possible improvement since I had to resort to
lib.mkForce
to overridecfg.build.before
, when I tried a python extension some time ago.