Nix Packages collection & NixOS
Go to file
Robert Hensing 0f9034d8b5 lib: Discourage use of extend
It creates interoperability issues that can not be reconciled by
`lib` or maintainers of projects that use the Nixpkgs library.
Occasionally, end users may be able to solve the problems they run
into, but most are not prepared to deal with this set of problems,
nor should they be.

Typical conflict:
- User wants to propagate their own lib, because it has some function
  they like to use throughout their projects
- Project maintainer requires the project's lib to be used

No sane language uses a single namespace for combining all the things.
(Arguably not even C with its extensive use of prefixing)

Meanwhile, in Nix, all symbols are first class variables. We don't even
have the concept of a global top-level namespace to pour everything into.
With `lib` you can try to approximate that, I get the appeal of its
apparent simplicity, but since `lib` can't be global, we just don't even
get that apparent simplicity.

I apologize for not offering concrete solutions to this in the text.
The manuals are limited to reference documentation.
Alternatives - of which we have multiple - are best provided in
task-oriented documentation, e.g. nix.dev.
2025-01-23 08:27:29 +01:00
.devcontainer .devcontainer: tweaks 2025-01-13 16:35:04 +01:00
.github ci: Format nixfmt command prominently (#373939) 2025-01-19 10:28:41 +01:00
ci zfs_2_1: remove (#358811) 2025-01-14 14:37:08 -05:00
doc lib: Discourage use of extend 2025-01-23 08:27:29 +01:00
lib lib: Discourage use of extend 2025-01-23 08:27:29 +01:00
maintainers maintainers: add one-d-wide 2025-01-19 09:45:46 +00:00
nixos nixos/acme: disable rate limiting to fix the test (#374984) 2025-01-19 15:07:43 +03:00
pkgs python312Packages.pytapo: 3.3.37 -> 3.3.38 (#373943) 2025-01-19 22:01:01 +09:00
.editorconfig .editorconfig: Format .bash files like .sh 2024-11-10 14:52:08 +13:00
.git-blame-ignore-revs .git-blame-ignore-revs: add tmuxPlugins commit 2025-01-07 20:32:17 -05:00
.gitattributes .gitattributes: Mark ci/OWNERS as CODEOWNERS 2024-10-10 01:40:43 +02:00
.gitignore gitignore: ignore log files generated by update scripts too 2024-12-29 22:57:27 -03:00
.mailmap mailmap: add jopejoe1 2025-01-02 16:54:52 +01:00
.mergify.yml chore(mergify): remove not relevant Tag check (#365804) 2024-12-17 09:13:23 +01:00
.version .version: Make lib/.version source of truth 2024-02-26 22:34:10 +01:00
CONTRIBUTING.md Release 24.11 2024-11-29 06:28:22 -08:00
COPYING COPYING: 2024 -> 2025 2025-01-01 05:27:15 +01:00
default.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
flake.nix lib: Discourage use of extend 2025-01-23 08:27:29 +01:00
README.md README: Update to 24.11 2024-11-28 12:12:30 -08:00
shell.nix shell.nix: Support nix-shell -A 2024-11-02 23:51:41 +01:00

NixOS logo

Contributors badge Open Collective supporters

Nixpkgs is a collection of over 100,000 software packages that can be installed with the Nix package manager. It also implements NixOS, a purely-functional Linux distribution.

Manuals

  • NixOS Manual - how to install, configure, and maintain a purely-functional Linux distribution
  • Nixpkgs Manual - contributing to Nixpkgs and using programming-language-specific Nix expressions
  • Nix Package Manager Manual - how to write Nix expressions (programs), and how to use Nix command line tools

Community

Other Project Repositories

The sources of all official Nix-related projects are in the NixOS organization on GitHub. Here are some of the main ones:

  • Nix - the purely functional package manager
  • NixOps - the tool to remotely deploy NixOS machines
  • nixos-hardware - NixOS profiles to optimize settings for different hardware
  • Nix RFCs - the formal process for making substantial changes to the community
  • NixOS homepage - the NixOS.org website
  • hydra - our continuous integration system
  • NixOS Artwork - NixOS artwork

Continuous Integration and Distribution

Nixpkgs and NixOS are built and tested by our continuous integration system, Hydra.

Artifacts successfully built with Hydra are published to cache at https://cache.nixos.org/. When successful build and test criteria are met, the Nixpkgs expressions are distributed via Nix channels.

Contributing

Nixpkgs is among the most active projects on GitHub. While thousands of open issues and pull requests might seem a lot at first, it helps consider it in the context of the scope of the project. Nixpkgs describes how to build tens of thousands of pieces of software and implements a Linux distribution. The GitHub Insights page gives a sense of the project activity.

Community contributions are always welcome through GitHub Issues and Pull Requests.

For more information about contributing to the project, please visit the contributing page.

Donations

The infrastructure for NixOS and related projects is maintained by a nonprofit organization, the NixOS Foundation. To ensure the continuity and expansion of the NixOS infrastructure, we are looking for donations to our organization.

You can donate to the NixOS foundation through SEPA bank transfers or by using Open Collective:

License

Nixpkgs is licensed under the MIT License.

Note: MIT license does not apply to the packages built by Nixpkgs, merely to the files in this repository (the Nix expressions, build scripts, NixOS modules, etc.). It also might not apply to patches included in Nixpkgs, which may be derivative works of the packages to which they apply. The aforementioned artifacts are all covered by the licenses of the respective packages.