Skip to content
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

Use niv to pin nixpkgs channel for nix shell #1342

Closed
wants to merge 2 commits into from

Conversation

adisbladis
Copy link
Member

This will simplify contributing for people on other channels than unstable.

@edolstra
Copy link
Member

👎 on this. We already have a flake branch that we're using in production, let's not complicate things by bringing in another tool.

@adisbladis
Copy link
Member Author

Copying my comment from the issue #1341 (comment):

Flakes is not yet released and I don't expect all contributors to run on a branch with flakes enabled for quite some time.

Niv should only be seen as a stop gap solution.

@gilligan
Copy link
Contributor

my 2cents: niv seems like a reasonable approach to me. I don't use an umerged nix branch and i personally wouldn't recommend this to anyone outside of playing around with it.

Let's remind ourselves that we are discouraging Nix users from the new, experimental nix commands. This seems very much at odds with elsewhere suggesting "just build this unreleased branch of nix and use that".

Last but not least. It is trivial to remove niv again and use flakes instead once they are released.

@edolstra
Copy link
Member

Either way you need a non-standard command so I don't see an advantage of one over the other, except that I don't want to endorse niv because it would send the message that we're standardizing on that rather than flakes.

@edolstra edolstra closed this May 13, 2020
@adisbladis
Copy link
Member Author

Either way you need a non-standard command so I don't see an advantage of one over the other,

The advantage of using niv in this context is that it works with whatever version of Nix you have on your system already.
With flakes we can't expect users to be able to simply invoke nix-shell and get a working development environment, at least not yet.

What's the alternative stop-gap to pin nixpkgs until we can rely on flakes?
I'd rather not manually pin a revision with an updater script but I'm OK with that if we need to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants