FAQ/Pinning Nixpkgs: Difference between revisions

imported>Legendofmiracles
m Add note about https://lazamar.co.uk/nix-versions/
imported>Eyeinsky
Line 157: Line 157:
How to upgrade a single package and service to an unstable version
How to upgrade a single package and service to an unstable version


There is probably a better way, especially once flakes comes around. Some packages, let you specify which <code>package</code> to run as an option for instance.  Most don't in my experience. This is how you do it for one that doesn't.
There is probably a better way, especially once flakes come around. Some packages let you specify which <code>package</code> to run as an option but most don't. The following is a generic way for those which don't:


add to configuration.nix a set allowing unstable packages.
add to configuration.nix a set allowing unstable packages.