Nix package manager

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 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 package manager
Stable release
2.3.8[1] / October 22, 2020 (2020-10-22)
Repository
Written inC++
PlatformLinux, Unix-like
TypePackage management
LicenseLGPL
Websitenixos.org/nix

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, though some workarounds are required for Catalina.[5]

NixOS

NixOS[6] is a Linux distribution using Nix consistently for every piece of software in the system including the Linux kernel.[7]

Nixpkgs

Nixpkgs is the package repository built upon the Nix package manager. It contains more than 60,000 packages[8] and is the most up-to-date package repository.[9]

See also

  • Maak - a build automation utility similar to make, designed to build complex software systems
  • GNU Guix - another declarative package manager for Linux distributions, built on Nix but which uses GNU Guile for configuration and customization, instead of the domain-specific language of Nix
  • Runbook automation - one of the potential applications of Nix

References

  1. Dolstra, Eelco (2020-10-22). "Release 2.3.8" (Mailing list). Retrieved 2020-11-19.
  2. Prins, P., Suresh, J. and Dolstra, E., "Nix fixes dependency hell on all Linux distributions," linux.com, December 22, 2008
  3. Dolstra, E., de Jonge, M. and Visser, E. "Nix: A Safe and Policy-Free System for Software Deployment." In Damon, L. (Ed.), 18th Large Installation System Administration Conference (LISA '04), pages 79–92, Atlanta, Georgia, USA. USENIX, November 2004.
  4. Dolstra, E. The Purely Functional Software Deployment Model. PhD thesis, Faculty of Science, Utrecht, The Netherlands. January 2006. ISBN 90-393-4130-3.
  5. https://github.com/NixOS/nix/issues/2925
  6. http://nixos.org/
  7. Dolstra, E. and Löh, A. "NixOS: A Purely Functional Linux Distribution." In ICFP 2008: 13th ACM SIGPLAN International Conference on Functional Programming, pages 367–378, Victoria, British Columbia, Canada. September 2008.
  8. https://repology.org/repository/nix_unstable
  9. https://repology.org/repositories/statistics/newest
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.