-
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
shellify use the local nixpkgs path instead of the remote one #12
Comments
Hi @RoadRoller01, the value for that input is actually taken from the output of I could add functionality to try to in some circumstances decode the value of nixpkgs and attempt to convert it to a flake input. But I wonder if it's overkill, especially since using Also, it would be interesting to know why your nixpkgs registry entry is a local path. My nixos is built from flakes too and it doesn't look like that. Do you happen to know why yours is like that? Can you please share your Thanks for the feedback. |
sure,
for some reason i have two nixpkgs one tagged global and one tagged system, so i think you should use the global one? |
Thanks for sharing the output. If I were to use the system one this would break for somebody choosing to override the global one with their own local version. It would be good to understand how the local one got there. You might want to try updating your Nixos flake and see if the system nixpkgs changes. If it doesn't then you should delete it because it is surely growing stale. If it changes I suspect you are using something that chooses to pin nixpkgs to a local version and my gut feeling is that shellify should respect that rather then do something confusing or convoluted. I'm interested to know if your flake did this and whether others are likely to get have situation. |
i quit nixos(: |
:( nooooo..... |
@Vaisakhkm2625, I'm now seeing the system value set to a Nix store path too. I think this behavior may have changed. I now suspect we should ignore the system value for at least nixpkgs by default and not with a flag. It would be good to understand this better though. Any experiments or analysis in this area are most welcome. |
so can we reopen the issue to make it global? |
Yes, of course we can. The main thing I think we need to understand to address this is whether the pinning of the system value is happening for nixpkgs only or whether we need to change the rules for all inputs. I don't want to make the situation amny more complicated than it already is. |
I'm part way through reading the comments in NixOS/nix#7422 which may help us understand the situation better. |
So I read the above and found a link to https://github.com/NixOS/nixpkgs/pull/254405/files which appears to be pinning the system flake specifically for the case of
@Vaisakhkm2625 what do you think? This is more complicated than I would like but I think it's necessary due to the complicated implementation of nix registries in the nix tool. |
i am using flake for my nixos, and set the nixpkgs to "github:nixos/nixpkgs/nixos-unstable" so
it should use it instead of the local one.
The text was updated successfully, but these errors were encountered: