Purely functional package manager for reproducible, declarative builds
open sourceLGPL-2.1self-hostablefree
Nix is a package manager and build tool for Linux and other Unix systems (including macOS) that makes package management reliable and reproducible by building packages in isolation from declarative descriptions. Nixpkgs is one of the largest package repositories, and Nix powers reproducible dev shells, CI builds and the NixOS Linux distribution. It was created by Eelco Dolstra as the subject of his 2006 PhD thesis.
Problems it solves
- works on my machine but not on CI because of different system libraries
- I need a fully reproducible build environment pinned down to every dependency
- install multiple versions of the same library without conflicts
- roll back a broken package upgrade instantly
- a dev shell with exact compiler and library versions for every contributor
- Homebrew upgrades keep breaking my project's dependencies
- build the same artifact bit-for-bit on different machines
- describe my whole machine's configuration in code
- Docker images are too big and not really reproducible
Features
- isolated builds
- atomic upgrades and rollbacks
- multiple versions side by side
- Nixpkgs
- dev shells
- binary caches
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what Nix does.
- Flox The software environment platform: one manifest, every environment, from laptop to production.
- devenv Declarative, reproducible developer environments using Nix
- Determinate Nix Determinate Systems' validated distribution of Nix, continuously rebased on upstream
- Devbox Instant, easy, and predictable development environments
- Bazel a fast, scalable, multi-language and extensible build system
- Hermit Isolated, self-bootstrapping sets of tools for each software project
