Skip to content

What is the recommended way to use both nixpkgs stable and unstable / part-specific nixpkgs extension #105

Answered by stites
onsails asked this question in Q&A
Discussion options

You must be logged in to vote

@onsails, I came across this issue for a different reason than using the pkgs.unstable pattern, but I would like to point out that it seems as if the "flake-parts" way is to avoid this pattern of a global namespace as much as possible.

Some more modular ways to do this seem to be:

  • @roberth's suggestion (which I think I gave a concrete example of). This does seem to be a little too much effort for me, personally, when I just want a quick, one-off hack for a tool I have not bought into yet.
  • maintain a dedicated pkgs.nix flake, or use something like https://github.com/fufexan/dotfiles/tree/main/pkgs/default.nix which can use packages via a self'.packages property
  • Stick to exactly what you a…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@stites
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by onsails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants