教學# These sections contain a series of lessons to get started. 第一步 Ad hoc shell environments Reproducible interpreted scripts 宣告式外殼環境 Towards reproducibility: pinning Nixpkgs Nix 語言基礎 概覽 Names and values Functions Function libraries Impurities Derivations Worked examples 參考 下一步 打包現有軟體 簡介 Your first package A package with dependencies Finding packages Fixing build failures A successful build 參考 下一步 Package parameters and overrides with callPackage 概覽 Automatic function calls Parameterised builds 覆蓋 Interdependent package sets 摘要 參考 下一步 Working with local files File sets Example project Adding files to the Nix store Difference Missing files Union (explicitly exclude files) Filter Union (explicitly include files) Matching files tracked by Git Intersection Conclusion 交叉編譯 您需要什麼? 平臺 什麼是目標平臺? Determining the host platform config 使用 Nix 選擇主機平臺 指定主機平臺 Cross compiling for the first time Real-world cross compiling of a Hello World example Developer environment with a cross compiler 下一步 模組系統 您需要什麼? 這會花多久的時間? NixOS 建立 NixOS 映像 測試並部署 NixOS 組態 Scaling up