📜 ⬆️ ⬇️

Nix is ​​the next generation package manager.

Hello,

Today we will talk about Nix , a purely functional package manager.


')
Why create another bike, this time with square wheels purely functional?
Existing solutions:


As a result, a lot of hard work falls on the volunteers, who day and night in the service of the fatherland. :)

How to solve this problem? Very simple, the guys from the University of Utrecht said: handle packages in the same way as the values ​​of expressions in purely functional languages! How-how, the reader will ask?

Like that:


The two sentences above mean only that Nix never makes changes to the files on the disk, but only creates new files.

“How so? I have a disk of only 2 GB! ”- probably the reader was visited by something like this. :) The fact is that some packages can be quietly removed if other packages do not depend on them. This is very similar to garbage collection in modern programming languages.

We list the most notable advantages of Nix over other package managers:


On this optimistic note, we complete our reviewer.

update: formatting
update: moved to the collective blog

Source: https://habr.com/ru/post/47590/


All Articles