Stable release | 2.3.12[1]
/ June 1, 2021 |
---|---|
Written in | C++ |
Platform | Linux, Unix-like |
Type | Package management |
License | LGPL |
Website | nixos |
Nix is a cross-platform package manager that utilizes a purely functional deployment model where software is installed into unique directories generated through cryptographic hashes. It is also the name of the tool's programming language. A package's hash takes into account the dependencies, which is claimed to eliminate dependency hell.[2] This package management model advertises more reliable, reproducible, and portable packages.[3][4]
Nix packages are defined through a lazy functional programming language specifically designed for package management. Dependencies are tracked directly in this language through an intermediate format called "derivations". A nix environment keeps track of references automatically, which allows unused packages to be garbage collected when no other package depends on them. At the cost of greater storage requirements, all upgrades in Nix are guaranteed to be both atomic and capable of efficient roll-back. This also enables multiple users to safely install software on the same system without administrator privileges.
Nix has full support for Linux and macOS and can safely be installed side by side with an existing package manager.
NixOS[5] is a Linux distribution using Nix for managing software in the system, including the Linux kernel.[6]
Nixpkgs is the package repository built upon the Nix package manager. According to Repology, as of July 2021 it contains more than 70,000 packages,[7] and is the most up-to-date package repository.[8]