Nixpkgs/zh-hans: Difference between revisions
Loxodoromy (talk | contribs) Created page with "{{main|频道分支}}" |
Loxodoromy (talk | contribs) Created page with "托管在Nixpkgs上的包和模块通过多个频道分支分发,以供特定用途。实际上,它们的区别在于更新必须在官方[https://nixos.org/hydra/manual/#idm140737315980672 nixos.org Hydra实例]上通过的测试等级,以及它们的更新数量。" |
||
Line 16: | Line 16: | ||
{{main|频道分支}} | {{main|频道分支}} | ||
托管在Nixpkgs上的包和模块通过多个[[channel branches|频道分支]]分发,以供特定用途。实际上,它们的区别在于更新必须在官方[https://nixos.org/hydra/manual/#idm140737315980672 nixos.org Hydra实例]上通过的测试等级,以及它们的更新数量。 | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> |
Revision as of 13:15, 27 September 2025
Nixpkgs是最大的Nix包仓库和NixOS模块。该仓库存储在GitHub上,由社区维护,并得到NixOS基金会的官方支持。
搜索可用的包和选项,见搜索包。
正如NixOS 24.11发行公告所强调的,“NixOS已经被认为是最与时俱进的发行版和包最多的发行版”。Nixpkgs能成为杰出的Linux包仓库,归功于社区的持续贡献。
子页面
这里有一些关于操作nixpkgs的文章:
发行版本
- Main article: 频道分支
托管在Nixpkgs上的包和模块通过多个频道分支分发,以供特定用途。实际上,它们的区别在于更新必须在官方nixos.org Hydra实例上通过的测试等级,以及它们的更新数量。
For NixOS users, nixos-unstable
channel branch is the rolling release, where packages pass build tests and integration tests on a VM, and are tested from the perspective of being an operative system (this means things like the X server, KDE, various servers, and lower level details like installing bootloaders and running the NixOS installation steps are also tested).
For standalone Nix users, nixpkgs-unstable
channel branch is the rolling release, where packages pass only basic build tests and are upgraded continuously.
Both NixOS and Nix users can use stable channel branches (see https://status.nixos.org/ for the current channels) 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.