-
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
re-remove dependency on nixpkgs #39
Comments
@leotaku yeah I'm having issues with that as well. I have a solution which I'll probably implement tonight. Basically it'll use the builtin fetchers for |
@nmattia Hmmm... I suppose it would, but it wouldn't really be ideal (as it would mean that niv would always have to pull some nixpkgs checkout, even if that isn't really needed for the project at hand). What is the reason we are using the nixpkgs fetchers? (How) do they differ from |
@leotaku By using nixpkgs fetchers, we also get better error messages, and it'd allow us to fetch more stuffs, such as Docker images #34. But I agree it is not ideal to first have to fetch |
Quick summary of the issue: We cannot use
We cannot use the We can check if Generally I believe we still want to use the The good news is that we appear to have an equivalent of the CAP theorem for |
@nmattia If you choose to have this configurable per project, one easy fix would surely be to just offer multiple So for example: (--sources might not be a good flag name) niv init # equivalent to niv-init --sources default
niv init --sources default # import derivation with key "nixpkgs"
niv init --sources system # simply use "NIX_PATH" nixpkgs
niv init --sources builtin # only allow builtin fetchers, abort on other fetchers To me this sounds like a reasonable and relatively easy to implement method, opinions? |
I have previously used niv to bootstrap systems that do not have the nixpkgs repository downloaded/setup as well as a replacement for the non-reproducible
nix-channel
. niv's newly added dependence on nixpkgs for its fetchers makes this impossible.From what I understand we use the nixpkgs fetchers in order to please hydra, which needs a "real" derivation instead of one that is manually created.
However in #32 it is mentioned that hydra can also be pleased by simply adding the
outPath
key to the derivation record.So maybe we can lose the dependence on nixpkgs again?
The text was updated successfully, but these errors were encountered: