Flakes/zh: Difference between revisions

Ardenet (talk | contribs)
Created page with "Nixpkgs 也可以指向一个由 NixOS 组织缓存的 URL:"
Ardenet (talk | contribs)
Created page with "在此示例中,输入将指向 nixpkgs-unstable 频道(channel)。"
Line 201: Line 201:
<code>inputs.nixpkgs.url = "<nowiki>https://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz</nowiki>";</code>
<code>inputs.nixpkgs.url = "<nowiki>https://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz</nowiki>";</code>


<div lang="en" dir="ltr" class="mw-content-ltr">
在此示例中,输入将指向 nixpkgs-unstable 频道(channel)。
In this example the input would point to the `nixpkgs-unstable` channel.
</div>


对于任何包含 flake.nix 文件的仓库,其所属网站也必须被定义。Nix 知道 nixpkgs 仓库的位置,因此没有必要声明它在 GitHub 上。
对于任何包含 flake.nix 文件的仓库,其所属网站也必须被定义。Nix 知道 nixpkgs 仓库的位置,因此没有必要声明它在 GitHub 上。