FAQ/Pinning Nixpkgs: Difference between revisions
imported>Legendofmiracles m Add note about https://lazamar.co.uk/nix-versions/ |
mNo edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
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 | 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 that also works for those which don't. | ||
add to configuration.nix a set allowing unstable packages. | add to configuration.nix a set allowing unstable packages. | ||
Line 232: | Line 232: | ||
where all the stuff just comes from the bind services definition(which you can get from the source link on the nixos options page.) | where all the stuff just comes from the bind services definition(which you can get from the source link on the nixos options page.) | ||
Just replace named variables, and replace <code>${pkgs.bind.out</code> with <code>${pkgs.unstable.bind.out}</code> | Just replace named variables, and replace <code>${pkgs.bind.out</code> with <code>${pkgs.unstable.bind.out}</code> | ||
== See also == | |||
- [https://nix.dev/reference/pinning-nixpkgs Pinning Nixpkgs] | |||
- [https://nix.dev/tutorials/first-steps/towards-reproducibility-pinning-nixpkgs Towards Reproducibility: Pinning Nixpkgs] | |||
- [https://nix.dev/guides/recipes/dependency-management.html Dependency Management] |