Shell scripts/zh: Difference between revisions
Created page with "== 外部 builder.sh 脚本 ==" |
Created page with "函数 <code>writeShellScript</code> 可用于向 Nix 表达式中添加 Shell 脚本。" Tags: Mobile edit Mobile web edit |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
函数 <code>writeShellScript</code> 可用于向 Nix 表达式中添加 Shell 脚本。 | |||
<syntaxHighlight lang="nix"> | <syntaxHighlight lang="nix"> | ||
| Line 23: | Line 21: | ||
== 外部 builder.sh 脚本 == | == 外部 builder.sh 脚本 == | ||
较长的 Bash 脚本通常会保存为外部脚本文件,并在 Nix 中调用: | |||
{{file|default.nix|nix|3= | {{file|default.nix|nix|3= | ||