This is a read-only archive. Find the latest Linux articles, documentation, and answers at the new!

If NIX is the primarly package manager

Posted by: Anonymous [ip:] on December 23, 2008 09:04 AM
If NIX or something like that is the primary pakage manager you don't really have to waste a lot of space. If the pacakge manger only installs a different version of dependency if needed.

So for the standard package of the distro you will basically have a single version of all the package. But say you are installing a new version of firefox .. now if the gtk version is valid for the few version (exact or in the range) it will just install firefox. If a newer version of gtk is needed then it will install that .. and if another new package needed this new gtk .. that will get it automatically.

now one problem though is whether a hash can make the comparison of same version difficult. I would rather have all the options in building the package stored .. not just the hash and for dependency you define the options thats releveant to you .. (most cases very few .. like optimization flag don't matter in most cases) ..

so gtk -- options a=1,b=1,c=2
firefox dependency ... gtk (b=1) .. like this

It may seem extreme but when cheking compatibilty or building dependency package thats what maintainers do .. why not make that part of the packaging officially.


Return to Nix fixes dependency hell on all Linux distributions