-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
nix-2.4 conflicts with programs.zsh.enable #5445
Comments
Nixpkgs checks the While https://github.com/LnL7/nix-darwin/blob/a7492a8c76dcc702d0a65cd820a5f9baa8702684/modules/programs/zsh/default.nix#L103 Maybe it would be a better idea to change the derivation for |
The |
stumbled on this just now after upgrading to nix-2.4, had to manually do the patch that Enzyme mentioned. |
@shroomist would you mind sharing what you exactly did? |
@shroomist I'm interested too. |
|
Thanks @shroomist 👍🏼 I think the first step is not needed, instead, I removed Then followed the rest of the steps. |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/resolving-conflicts-nix-2-4-nix-zsh-completion/16006/2 |
For pkgs.nix_2_4, I don't think you need to change pkgs.nixFlakes. Just disable completion, switch, remove the file, reenable completions, and switch. |
Note also that I got:
I checked that the pre-nix backup was the same and removed /etc/zshrc and that fixed that error. |
I have disabled completions: programs.zsh = {
inherit shellAliases;
enable = true;
enableCompletion = false; but switch id not working. I got error: Converting contributing.adoc to DocBook ...
error: collision between `/nix/store/csadkv9vsi64sxx8nq08ydy88j3b3kwp-nix-2.4/share/zsh/site-functions/_nix' and `/nix/store/9aggbz1bcndl0la8b42y4ridwp7wgvwq-nix-zsh-completions-0.4.4/share/zsh/site-functions/_nix'
builder for '/nix/store/vppjhlz5l0miz8x7wnpc7ivl04cyz9iw-system-path.drv' failed with exit code 25
cannot build derivation '/nix/store/y8qwlfja3j3a00gghzfagzkid6c74rb8-darwin-system-21.11pre330079.bf346b557b7+darwin4.0000000.drv': 1 dependencies couldn't be built
error: build of '/nix/store/y8qwlfja3j3a00gghzfagzkid6c74rb8-darwin-system-21.11pre330079.bf346b557b7+darwin4.0000000.drv' failed Trying to remove file: sudo rm /nix/store/2ssnzzjz8pqxcl3jv9sbcphiqsrxd8x3-nix-zsh-completions-0.4.4/share/zsh/site-functions/_nix it not helped. update sudo rm /nix/store/csadkv9vsi64sxx8nq08ydy88j3b3kwp-nix-2.4/share/zsh/site-functions/_nix
sudo rm /nix/store/9aggbz1bcndl0la8b42y4ridwp7wgvwq-nix-zsh-completions-0.4.4/share/zsh/site-functions/_nix after this switch was complete. |
Did manually work of NixOS/nix#5445 (comment)
Can we close this? I'm using nix 2.7 from unstable and am not running into this issue anymore. |
I have still this issue. I'm on nix 2.8 |
Present on Ubuntu with Nix 2.10.3. |
I have the same issue as well
|
Following @spease's instructions also seamed to fix my issue. |
Describe the bug
Steps To Reproduce
Set
nix.package
topkgs.nix_2_4
withprograms.zsh.enable = true;
Expected behavior
nix
nix-env --version
outputAdditional context
The text was updated successfully, but these errors were encountered: