ngi-nix/forge · 文件 下载 ZIP
文件最后提交记录最后更新时间
README.md
以下内容由 AI 翻译,如有问题请点此提交 issue 反馈
NGI Forge
该软件正处于积极开发中。可能会出现向下不兼容的变更。
功能特点
概念图
graph TB
subgraph NixosCommunity["NixOS Community"]
NIXPKGS(Nixpkgs)
NIXOS(NixOS)
end
subgraph Sources["Sources"]
SW1[Git Repository]
SW2[Tarball URL]
SW3[Local Path]
end
PKG[Package Recipe<br/>recipe.nix]
subgraph PackageOutputs["Packages"]
PO4[Nix Package]
PO1[Development Environment]
PO2[Shell Environment]
end
APP[Application Recipe<br/>recipe.nix]
subgraph AppOutputs["Applications"]
AO1[Shell Runtime<br/>for CLI and GUI components]
AO2[Container Runtime<br/>for services]
AO3[NixOS Runtime<br/>for services]
end
SW1 & SW2 & SW3 & NIXPKGS--> PKG
PKG --> PO1 & PO2 & PO4
PO4 & NIXPKGS & NIXOS --> APP
APP --> AO1
APP --> AO2
APP --> AO3
自主托管
- 从模板创建新的 Nix Forge 实例
nix flake init --template github:ngi-nix/forge#provider
-
在
flake.nix中将repositoryUrl属性设置为你的仓库地址 -
将所有新文件添加到 git 中
-
开始在
recipes目录中创建配方
Nixpkgs 仓库
我们在Nixpkgs]中打包并维护一些 NGI 软件,并在 Forge 应用程序的配方中重用它们。
获取 Nixpkgs 中维护的软件包列表
nix eval --json -f maintainers/list-nixpkgs.nix packages
致谢
该软件最初是作为 imincik/nix-forge的衍生项目而开发的。