-
Notifications
You must be signed in to change notification settings - Fork 79
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
niv can't be used to pin NixOS #113
Comments
You probably had that file in the same directory as sources.nix, which is not the case for me since it is part of a larger config. I might be wrong about this, but I think with |
Here is how I pin NixOS: |
The assumption is that "most of the time" there will be a
|
@nmattia I think having an additional config file wouldn't be the greatest thing. What I instead would like to see is a well-commented and easily understandable (for newcomers to Nix) Possibly the "logic" of the file could also be moved to a different |
You can explicitly use builtin fetchers now. I recommend doing this for your |
Good point, seems I mistraced the variable dependencies of the functions used to call the builtins inside |
@michaelpj ok I'm lost, how does one enable the builtins nixpkgs? |
Just change the type of the |
When pinning NixOS by setting
nixpkgs
in the$NIX_PATH
to a file that imports nixpkgs fromsources.nix
, an infinite recursion will be entered because niv believes it has nixpkgs available and tries to use fetchers from the nixpkgs version it is supposed to fetch.The text was updated successfully, but these errors were encountered: