News for hackers. Stuff that matters.
Re:C Package Manager by grumbel on Tuesday March 08, 2022 @06:28AM (#30598779)
Nix has no problems installing a specific version of a software. You can either override an existing package or just build your own:

https://nixos.wiki/wiki/Overlays#Overriding_a_version

With Nix flakes it's even easier and you can just mix and match inputs as you want. For example if you want to replace libfoo with your own fork you just do something like:

$ nix build --override-input libfoo /home/juser/src/libfoo

And the best part is that none of this requires any changes to your system. If you need multiple different specific versions at once, Nix can just do it, as every software is sitting around in /nix/store/{HASH} and there is no risk of anything colliding.

There are no comments on this comment yet.