Nixpkgs

Revision as of 18:41, 28 August 2025 by Weijia (talk | contribs) (Created page with "對於獨立 Nix 用戶,<code>nixpkgs-unstable</code> 頻道是滾動式更新,這些軟體包只經過基本建立測試和升級連續性。")

Nixpkgs 是最大的 Nix 软体包储存库和 NixOS 模组。储存库 托管在 GitHub 上 并且由社群维护,另外还有 NixOS Foundation 的官方支持。

寻找可用的套件和选项,请看 寻找套件

如同在 NixOS 21.05 释出 发布会 所强调的,“NixOS 已经被认为是 最即时更新的发行版第三多软体包的发行版。” 这归功于社群的持续贡献使 Nixpkgs 成为最重要且最强大的 Linux 软体包储存库。

子页面

这里有一系列的文章关于操作 nixpkgs


释出版本

Main article: 频道分支

软体包和模组托管在 Nixpkgs 被分配成多种 频道分支 用于特定用途。在实务上,它们的不同在于更新必须在官方 nixos.org Hydra 伺服器 上通过的测试,以及它们的更新频率。

对于 NixOS 用户而言,nixos-unstable(不稳定)频道是滚动式更新,软体包通过建立测试和 虚拟机上的整合测试,并经过作业系统方面的测试(意思式 X serverKDE、不同的视窗系统和低阶的细节例如 启动程式 (bootloader) 和运行 NixOS 系统安装步骤也会经过测试)。

对于独立 Nix 用户,nixpkgs-unstable 频道是滚动式更新,这些软体包只经过基本建立测试和升级连续性。

Both NixOS and Nix users can use stable channel branches - the latest being nixos-24.11 - to receive only conservative updates for fixing critical bugs and security vulnerabilities. Stable channel branches are released bi-annually at the end of May and the end of November.

Using stable channels on NixOS is comparable to the user experience on other Linux distributions.

Alternatives

Due to the fact that Nixpkgs is only a Nix expression, it is possible to extend or replace the logic with your own sources. In fact, there are a number of extensions as well as complete replacements for Nixpkgs, see the Alternative Package Sets article.